interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / seed / omc / tests / float / globals.om

16 lines · 281 bytes Raw Blame History
1note a float pool holds the same 8-byte (f64) or 4-byte (f32) patterns as an array.
2global g f64 4
3global h f32 4
4fn main to int
5put g 1 0.5
6b = bitcast ulong get g 1
7if ne b 4602678819172646912
8ret 1
9end
10put h 3 1.5
11c = bitcast uint get h 3
12if ne c 1069547520
13ret 2
14end
15ret 0
16end