[Jprogramming] 1r3 --> 0.333333

Ian Clark earthspotty at gmail.com
Mon Oct 31 22:28:09 HKT 2011


How best should I coerce (if that's an appropriate word to use in a J
context) a noun which possibly contains a rational, eg 1r3, to the
nearest floating-point number?
...So that it outputs as 0.333333 instead of 1r3 ?


More information about the Programming mailing list