October 21, 2021, 15:17:46

Author Topic: Numbers displayed in mill,micro or nano Seconds  (Read 197 times)

Offline Baggey

  • Full Member
  • ***
  • Posts: 183
Numbers displayed in mill,micro or nano Seconds
« on: September 04, 2021, 11:11:06 »
Hi,

When using numbers in Blitzmax they print out as 2.857e-007 Which is 285.7 nano or .2857 micro. This isn't very paletable so to speak. When hidden in side a calculation it dosent matter what form it's in! But when displaying to the screen for a Visual comprehension of the number it's nice to see them as mill, nano, micro, pico etc.. like Eng or -Eng button on a calculator!

Are there any hidden math functions that do this in Blitzmax?

For instance 1/(3.5*10^6)=2.85714293e-007 id like to force it to -006 or -009 or even -003.

Kind Regards Baggey


Currently Running a PC that just Aint fast enough!?
ZX Spectrum 48k, NEXT, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip.

Jesus was only famous because of his DAD.

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal