We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 747f379 commit f2769f6Copy full SHA for f2769f6
runtime/src/ceramic/Float32Utils.hx
@@ -72,6 +72,13 @@ class Float32Utils {
72
}
73
return Context.parse("(untyped __cpp__('" + exprStr + "f'):ceramic.Float32)", Context.currentPos());
74
75
+ else if (Context.defined('cs')) {
76
+ var exprStr = new Printer().printExpr(expr);
77
+ if (exprStr.indexOf('.') == -1) {
78
+ exprStr += '.0';
79
+ }
80
+ return Context.parse("(untyped __cs__('" + exprStr + "f'):ceramic.Float32)", Context.currentPos());
81
82
else {
83
return expr;
84
0 commit comments