Re: These Simple Four Lines of Mathematic Confound Me -- Bug?
- To: mathgroup at smc.vnet.net
- Subject: [mg121439] Re: These Simple Four Lines of Mathematic Confound Me -- Bug?
- From: Richard Fateman <fateman at cs.berkeley.edu>
- Date: Thu, 15 Sep 2011 04:39:35 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <j4prlp$fne$1@smc.vnet.net>
On 9/14/2011 2:20 AM, James Stein wrote:
> g := { NumberForm [ 13.0, { 5, 3 } ] };
> g
> % // N
in FullForm, g is List[NumberForm[13.`,List[5,3]]]
converting that to floating point numbers results in ...List[5.,3.]
which is illegal as a format.
while NumberForm [....] prints something that you appear to like, it
does not return a value that you apparently expect.
RJF