qb64 icon indicating copy to clipboard operation
qb64 copied to clipboard

PRINT cannot handle large _Floats

Open flukiluke opened this issue 3 years ago • 4 comments

Dim t As _Float
t = 1F300
Print t
Print Using "##.##################^^^^"; t
t = t * t
Print t
Print Using "##.##################^^^^"; t

Print is able to handle 1F300 but outputs INF D+300 when trying to print 1F600. Print Using correctly outputs the value.

flukiluke avatar Jun 20 '21 03:06 flukiluke

Print calls STR$() internally, so that's where it must be.

FellippeHeitor avatar Oct 03 '21 00:10 FellippeHeitor

Darn it, F in scientific notation? Wasn't it only D and E?

FellippeHeitor avatar Oct 03 '21 23:10 FellippeHeitor

There goes: image

FellippeHeitor avatar Oct 04 '21 00:10 FellippeHeitor

Oh well... print using: image

FellippeHeitor avatar Oct 04 '21 01:10 FellippeHeitor