[erlang-questions] Re: Printing very large numbers without e
Greg Perry
Greg.Perry@REDACTED
Wed Jul 22 05:52:02 CEST 2009
Round it?
Greg Perry
Chief Executive Officer
LiveAmmo Education, VMware Training
Phone: 1+ (302) 223-3195 x111
Fax: (866) 541-9022
Email: Greg.Perry@REDACTED
Web: http://www.LiveAmmo.com
Twitter: http://twitter.com/liveammo
----- Original Message -----
From: erlang-questions@REDACTED <erlang-questions@REDACTED>
To: erlang-questions@REDACTED <erlang-questions@REDACTED>
Sent: Tue Jul 21 20:28:17 2009
Subject: [erlang-questions] Re: Printing very large numbers without e
Maybe (or maybe not) you are meaning...
io:format("~w~n", [1000000 div 2]).
?
/sd
On Jul 21, 9:59 pm, "Yves S. Garret" <yoursurrogate...@REDACTED>
wrote:
> Hi,
>
> I'm not sure where to get an answer to this question. Say I want
> to see an integer printed out, but I don't want the e in the middle of
> my number.
>
> 1> io:format("~w~n", [1000000 / 2]).
> 5.0e5
> ok
>
> How can I get 500000? I've looked at the documentation and couldn't
> find anything that would give me the whole number without e. Did I
> miss something?
>
> ________________________________________________________________
> erlang-questions mailing list. Seehttp://www.erlang.org/faq.html
> erlang-questions (at) erlang.org
________________________________________________________________
erlang-questions mailing list. See http://www.erlang.org/faq.html
erlang-questions (at) erlang.org
More information about the erlang-questions
mailing list