Price fraction: Difference between revisions
m
→{{header|langur}}
Langurmonkey (talk | contribs) |
Langurmonkey (talk | contribs) |
||
Line 1,824:
<lang langur># using an implied parameter .f ...
val .pricefrac = f given .f {
/* The default operator between test cases is "and".▼
That is, writing "case" without a logical operator is the same as writing "case and".▼
To make a given case act as a switch in other languages, use "case or".▼
case >= 0.00, < 0.06: 0.10
case >= 0.06, < 0.11: 0.18
Line 1,850 ⟶ 1,845:
case >= 0.96, < 1.01: 1.00
default: throw "bad data"
}
|