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 / om2 / hex / floatlike-hex.om

27 lines · 515 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note spec/omegese-om2.md section 2 lines 53-58 (#745): hex digits e and f are digits, never the float exponent
3note or suffix markers of the decimal path: 0x1e is 30, 0x1f32 is 7986. Values from Wolfram (wolfram.txt).
4om2
5fn main to int
6a = ulong 0xe
7putu a
8a = ulong 0xf
9putu a
10a = ulong 0x1e
11putu a
12a = ulong 0x1e5
13putu a
14a = ulong 0x1f32
15putu a
16a = ulong 0x1f64
17putu a
18a = ulong 0xe0f
19putu a
20a = ulong 0x5e10
21putu a
22a = ulong 0xf32
23putu a
24a = ulong 0xfe
25putu a
26ret 0
27end