[Jprogramming] decimal conversions
Björn Helgason
gosinn at gmail.com
Sun Nov 19 02:52:39 HKT 2006
14j5 ": 3.12
3.12000
14j1 ": 3.12
3.1
2006/11/18, Pascal Jasmin <godspiral2000 at yahoo.ca>:
>
> I would like a verb f such that f returns a literal that is exactly the
> number that was typed. ie:
>
> f 3.12
> 3.12
> f 3.120
> 3.120
>
> ": 3.12
> 3.1200000000000001
>
>
> I need this info to simply count the number of decimals given, so if there
> is an alternate way of doing this, and the above is impossible, then help is
> appreciated.
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
Björn Helgason, Verkfræðingur
Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
801 Grímsnes ,t-póst: gosinn at gmail.com
Skype: gosiminn, gsm: +3546985532
Landslags og skrúðgarðagerð, gröfuþjónusta
http://groups.google.com/group/J-Programming
Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans
góður kennari getur stigið á tær án þess að glansinn fari af skónum
/|_ .-----------------------------------.
,' .\ / | Með léttri lund verður |
,--' _,' | Dagurinn í dag |
/ / | Enn betri en gærdagurinn |
( -. | `-----------------------------------'
| ) | (\_ _/)
(`-. '--.) (='.'=)
`. )----' (")_(")
More information about the Programming
mailing list