You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I use literalNum(10.0), the result will be 10. But I need to make sure the result is a double, i.e. has at least one decimal digit.
Is there any way to achieve that?
If not, maybe something like this: Expression literalDouble(double value) => LiteralExpression._(value.toString()); could be added to literal.dart? If I understand the docs for double.toString() correctly, that should ensure that at least one decimal digit is included in the output.
Thank you!
The text was updated successfully, but these errors were encountered:
If I use
literalNum(10.0)
, the result will be10
. But I need to make sure the result is a double, i.e. has at least one decimal digit.Is there any way to achieve that?
If not, maybe something like this:
Expression literalDouble(double value) => LiteralExpression._(value.toString());
could be added to literal.dart? If I understand the docs fordouble.toString()
correctly, that should ensure that at least one decimal digit is included in the output.Thank you!
The text was updated successfully, but these errors were encountered: