mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
Show more digits in fp values (issue #476)
This commit is contained in:
parent
e76dc64868
commit
83f758cbeb
@ -325,14 +325,14 @@ void debug_view_memory::view_update()
|
|||||||
switch (m_data_format)
|
switch (m_data_format)
|
||||||
{
|
{
|
||||||
case 9:
|
case 9:
|
||||||
sprintf(valuetext, "%g", uint32_to_float((UINT32)chunkdata));
|
sprintf(valuetext, "%.8g", uint32_to_float((UINT32)chunkdata));
|
||||||
break;
|
break;
|
||||||
case 10:
|
case 10:
|
||||||
sprintf(valuetext, "%g", uint64_to_double(chunkdata));
|
sprintf(valuetext, "%.24g", uint64_to_double(chunkdata));
|
||||||
break;
|
break;
|
||||||
case 11:
|
case 11:
|
||||||
float64 f64 = floatx80_to_float64(chunkdata80);
|
float64 f64 = floatx80_to_float64(chunkdata80);
|
||||||
sprintf(valuetext, "%g", uint64_to_double(f64));
|
sprintf(valuetext, "%.24g", uint64_to_double(f64));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user