Price fraction: Difference between revisions
Content added Content deleted
(add Ruby) |
(→{{header|J}}: "usage" -> "example") |
||
Line 168: | Line 168: | ||
priceFraction =: out {~ le I. -</lang> |
priceFraction =: out {~ le I. -</lang> |
||
''' |
'''Example:''' |
||
<lang j> priceFraction 0.34 0.070145 0.06 0.05 0.50214 0.56 1 0.99 0 |
<lang j> priceFraction 0.34 0.070145 0.06 0.05 0.50214 0.56 1 0.99 0 |
||
0.5 0.18 0.18 0.1 0.62 0.7 1 1 0.1</lang> |
0.5 0.18 0.18 0.1 0.62 0.7 1 1 0.1</lang> |