Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/omc/tests/float/params.om # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / omc / tests / float / params.om` 18 lines ยท 291 bytes Raw Blame History 1 note float parameters and return values use the same register convention as integers internally. 2 fn addf x f64 y f64 to f64 3 ret add x y 4 end 5 fn half x f64 to f64 6 ret div x 2.0 7 end 8 fn main to int 9 r = addf 1.5 2.5 10 if ne int r 4 11 ret 1 12 end 13 q = half 5.0 14 if ne int mul q 4.0 10 15 ret 2 16 end 17 ret 0 18 end