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 / arrays.om

15 lines · 256 bytes Raw Blame History
1note f64 and f32 elements in local arrays keep their exact bits.
2fn main to int
3a = new f64 4 1.5
4put a 2 2.5
5b = bitcast ulong get a 2
6if ne b 4612811918334230528
7ret 1
8end
9c = new f32 4 1.5
10d = bitcast uint get c 1
11if ne d 1069547520
12ret 2
13end
14ret 0
15end