036 num mod bases

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

2e0
-2e0
1.5e0
mod:div-zero
len=4
sc=8
ff
-11111111
to-base:non-int
2.55e2
from-base:bad-digit
-1e1

Expected output

2e0
-2e0
1.5e0
mod:div-zero
len=4
sc=8
ff
-11111111
to-base:non-int
2.55e2
from-base:bad-digit
-1e1

Flows

flow ~lit click a branch to expand · @labels scroll to their anchor
lit (expr: 17)
flow ~lit click a branch to expand · @labels scroll to their anchor
lit (expr: -17)
flow ~lit click a branch to expand · @labels scroll to their anchor
lit (expr: 5.5)
flow ~lit click a branch to expand · @labels scroll to their anchor
lit (expr: 7)
flow ~lit click a branch to expand · @labels scroll to their anchor
lit (expr: 1.234e5)
flow ~lit click a branch to expand · @labels scroll to their anchor
lit (expr: 1.234e-5)
flow ~lit click a branch to expand · @labels scroll to their anchor
lit (expr: 255)
flow ~lit click a branch to expand · @labels scroll to their anchor
lit (expr: -255)
flow ~lit click a branch to expand · @labels scroll to their anchor
lit (expr: 1.5)
flow ~from-base click a branch to expand · @labels scroll to their anchor
from-base (s: "ff", base: 16)
flow ~from-base click a branch to expand · @labels scroll to their anchor
from-base (s: "1z", base: 10)
flow ~from-base click a branch to expand · @labels scroll to their anchor
from-base (s: "-1010", base: 2)

Test Configuration

MUST_RUN