SplitScript reference / Migration / Floating-point rounding
Floating-point rounding
Migration from C#
Source pattern
Look for the C# concept Floating-point rounding 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 value.round() or value.roundTo(digits) for midpoint-to-even floating-point rounding; review result width, decimal inputs, and explicit midpoint modes.
Supported hosts
This uses the standard SplitScript runtime contract. Any provider-specific requirements are documented by the linked canonical API.
Related reference
-
Float.round (standard library)
-
Float.roundTo (standard library)