SPUG: Working with currency
John W. Krahn
jwkrahn at shaw.ca
Fri Apr 3 03:35:46 PDT 2009
Michael R. Wolf wrote:
>
> On Apr 3, 2009, at 12:22 AM, Andrew Sweger wrote:
>
>> On Thu, 2 Apr 2009, Yitzchak Scott-Thoennes wrote:
>>
>>> 2**53 pennies = a bit over 90 trillion dollars
>>
>> Reference, please? Context? (I mean, just throwing a number like this out
>> just doesn't seem fair. 53 bits? That seems... odd.)
>
>
> I wouldn't have known what to look for, but it was easy to find the 53,
> then do a bit of groping around (with grep) to see some related values....
>
> $ perl -MConfig=config_sh -e 'print config_sh()' | grep '^nv'
> nvEUformat='"E"'
> nvFUformat='"F"'
> nvGUformat='"G"'
> nv_preserves_uv_bits='53'
> nveformat='"e"'
> nvfformat='"f"'
> nvgformat='"g"'
> nvsize='8'
> nvtype='double'
Or simply:
$ perl -V:nv.*
nvEUformat='"E"';
nvFUformat='"F"';
nvGUformat='"G"';
nv_preserves_uv_bits='32';
nveformat='"e"';
nvfformat='"f"';
nvgformat='"g"';
nvsize='8';
nvtype='double';
John
--
Those people who think they know everything are a great
annoyance to those of us who do. -- Isaac Asimov
More information about the spug-list
mailing list