SplitScript reference / Migration / Floating-point conversion
Floating-point conversion
Migration from C#
Source pattern
Look for the C# concept Floating-point conversion in the source. The semantic difference below is more important than a token-for-token rewrite.
Canonical SplitScript
Use the canonical language and API symbols linked below.
Semantic difference
Use an explicit f32/f64 as cast for numbers, String.parse for text, or an if expression for booleans.
Supported hosts
This uses the standard SplitScript runtime contract. Any provider-specific requirements are documented by the linked canonical API.
Related reference
-
as (language)
-
if (language)
-
String.parse (standard library)