I added this to the FloatOps class:
[RubyConstant] public const double MAX = double.MaxValue;
But this generated the following code in InitializerGenerated.cs:
This won’t compile.
The compiler says that this number is too large for a double.
Double.MaxValue is actually 1.7976931348623157E+308.
The initializer generator code calls ToString on the value of the
to generate the SetConstant line of code. Unfortunately this only
15 significant figures, causing the number to be rounded up to
1.79769313486232E+308, which of course is larger than double.MaxValue.
Any good ideas on how to work around this?