July 06, 2011 Re: std.math.TAU | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Jul 6, 11 06:59, Walter Bright wrote: > On 7/5/2011 3:45 PM, Don wrote: >>> Another thing -- why are some constants defined in decimal, others in >>> hex, and >>> one (E) with the long 'L' suffix? >> >> The ones defined in decimal are obsolete, they haven't had a >> conversion to hex yet. > > The ones in hex I got out of a book that helpfully printed them as octal > values. I wanted exact bit patterns, not decimal conversions that might > suffer if there's a flaw in the lexer. > > It's hard to come by textbook values for some of these that are high > precision. > > It's definitely not good enough to just write some simple fp program to > generate them. http://www.wolframalpha.com/input/?i=pi+in+hexadecimal |
July 06, 2011 Re: std.math.TAU | ||||
---|---|---|---|---|
| ||||
Posted in reply to KennyTM~ | On 7/5/2011 11:12 PM, KennyTM~ wrote:
> On Jul 6, 11 06:59, Walter Bright wrote:
>> It's definitely not good enough to just write some simple fp program to
>> generate them.
>
> http://www.wolframalpha.com/input/?i=pi+in+hexadecimal
sweet!
|
Copyright © 1999-2021 by the D Language Foundation