SplitScript reference / Migration / Fixed-width numeric types

Fixed-width numeric types

Migration from C#

Source pattern

  • C#: sbyte

  • C#: byte

  • C#: short

  • C#: ushort

  • C#: int

  • C#: uint

  • C#: long

  • C#: ulong

  • C#: float

  • C#: double

Canonical SplitScript

  • sbyte becomes i8.

  • byte becomes u8.

  • short becomes i16.

  • ushort becomes u16.

  • int becomes i32.

  • uint becomes u32.

  • long becomes i64.

  • ulong becomes u64.

  • float becomes f32.

  • double becomes f64.

Use the canonical language and API symbols linked below.

Semantic difference

Memory-facing numbers use explicit signedness and bit widths.

Supported hosts

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

  • i8 (language)

  • u8 (language)

  • i16 (language)

  • u16 (language)

  • i32 (language)

  • u32 (language)

  • i64 (language)

  • u64 (language)

  • f32 (language)

  • f64 (language)