[Glass] Is there a way to print a Float with all decimals but without exponential notation?

Mariano Martinez Peck marianopeck at gmail.com
Mon Mar 3 05:42:07 PST 2014


Hi guys.

I am exporting some data to a CSV file and I am finding some differences
with Pharo. For my use-case, I would like to:

- Print all decimals of the float
- do not round
- do not show exponential notation

#greaseString (or doing self printOn: strm base: 10.) rounds the string.
For example:

19896.800000000003 greaseString
'19896.8'

while in Pharo I get

-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20140303/7784a16e/attachment.html>


More information about the Glass mailing list