Floating point in the type system
Ola Fosheim Grostad via Digitalmars-d
digitalmars-d at puremagic.com
Sat Sep 12 09:53:12 PDT 2015
On Saturday, 12 September 2015 at 16:08:31 UTC, Robert wrote:
> assert and runtime assert failing. I'm just curious to
> understand the reasoning behind this, whether it's intentional,
> and whether it matters at all.
Types need to mangle to the same name, but using floats in a type
name is usually not a good idea. Try pi... How many decimals? A
roundoff error and you get a new type.
More information about the Digitalmars-d
mailing list