Anonymous user
Decimal floating point number to binary: Difference between revisions
Decimal floating point number to binary (view source)
Revision as of 12:02, 1 November 2018
, 5 years ago→{{header|M2000 Interpreter}}
Line 661:
\\ using . for 1033 locale
Print Str$(Conv2Dec(Conv2Any$(12312321.1212, 2), 2), 1033)="12312321.1211853"
Print Str$(Conv2Dec(Conv2Any$(12312321.1212, 2,,52), 2), 1033) ="12312321.1212"
}
Checkit
Line 671 ⟶ 672:
12312321.1212
101110111101111100000001.0001111100000110
True
True
</pre>
|