[erlang-questions] display floats without -e?

Vans S vans_163@REDACTED
Mon Dec 31 17:37:38 CET 2018


1> 0.0001.0.00012> 0.00001.1.0e-5

Once floats get to the 4th/5th decimal place they start being displayed with the e-x notation.  Is there a way to make them always display "normally", for example 0.00001 in this case.  The problem is when you turn the float into a string, its also displayed as 1.0e-5, adding a format function works yes, but gets annoying to maintain when you need to do arithmetic on the floats.  LIke sorting by the value.

Also debugging becomes annoying when you see the e-5, e-6, etc notation everywhere and have to match it up.

Is there a way to compile / add arg to the VM to not do this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20181231/1a55a369/attachment.htm>


More information about the erlang-questions mailing list