Price fraction: Difference between revisions
→{{header|langur}}
Langurmonkey (talk | contribs) |
Langurmonkey (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 3,236:
Langur uses decimal floating point.
<syntaxhighlight lang="langur">
case >= 0.00, < 0.06: 0.10
case >= 0.06, < 0.11: 0.18
Line 3,259 ⟶ 3,258:
case >= 0.96, <= 1.00: 1.00
default: throw "bad data"
}}
writeln .pricefrac(0.17)
|