Decimal floating point number to binary: Difference between revisions

Content added Content deleted
Line 661: Line 661:
\\ using . for 1033 locale
\\ using . for 1033 locale
Print Str$(Conv2Dec(Conv2Any$(12312321.1212, 2), 2), 1033)="12312321.1211853"
Print Str$(Conv2Dec(Conv2Any$(12312321.1212, 2), 2), 1033)="12312321.1211853"
Print Str$(Conv2Dec(Conv2Any$(12312321.1212, 2,,52), 2), 1033) ="12312321.1212"
}
}
Checkit
Checkit
Line 671: Line 672:
12312321.1212
12312321.1212
101110111101111100000001.0001111100000110
101110111101111100000001.0001111100000110
True
True
True
</pre>
</pre>