SplitScript reference / Migration / Floating-point truncation

Floating-point truncation

Migration from C#

Source pattern

Look for the C# concept Floating-point truncation 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.truncate() with an explicit f32 or f64 boundary when preserving C# Math versus MathF semantics.

Supported hosts

This uses the standard SplitScript runtime contract. Any provider-specific requirements are documented by the linked canonical API.