ffc team mailing list archive
-
ffc team
-
Mailing list archive
-
Message #01725
-fprecision!=15
Hi,
Just for fun I tried to compile a form with -fprecision=32, to see if that would impact a problem I was seeing. The generated code was not what I expected.
For example, using the default, the factor 1/3 is represented as:
0.333333333333333
But for -fprecision=32 (for the same form) 1/3 becomes
0.33333333333333331482961625624739
Obviously that latter isn't really that much better than the former.
Is this known? I can only guess what's happening, anyone have a solid idea? Possibly (hopefully) its an environment issue that I can fix locally.
Jake
Follow ups