fmt and scientific notation

Discussion about the ZBasic language including the System Library. If you're not sure where to post your message, do it here. However, do not make test posts here; that's the purpose of the Sandbox.
Post Reply
FFMan
Posts: 502
Joined: 09 January 2010, 12:52 PM

fmt and scientific notation

Post by FFMan »

Out testing the qualifying light for real on a circuit today and all went really well. One of thos satisfying projects that works in the real world as it did in testing, and also proves to be really useful.

Just one thing needs tidying up on the display front. I use fmt(xx,2) to display a delta time, and as per the documentation, very small values are returned in scientific notation, and mess the formatting of the display.

is there a way to stop or detect this. in reality as i'm only displaying 2 decimal places, is any value returned in scientific notation effectively zero for my purposes ?

thanks
GTBecker
Posts: 616
Joined: 17 January 2006, 19:59 PM
Location: Cape Coral

Post by GTBecker »

Tom
FFMan
Posts: 502
Joined: 09 January 2010, 12:52 PM

Post by FFMan »

thanks - have taken the easy route this time as i only need 2 decimal places
Post Reply