Map range: Difference between revisions
→{{header|Ring}}
No edit summary |
|||
Line 1,988:
=={{header|Ring}}==
<lang ring>
# Project : Map range
Line 1,995 ⟶ 1,994:
# Email : <calmosoft@gmail.com>
decimals(1)
al = 0
ah = 10
Line 2,000:
bh = 0
for n = 0 to 10
see "" + n + " maps to " + maprange(al, bl, n) + nl
next
Line 2,008:
Output:
<pre>
0 maps to -1
1 maps to -0.
2 maps to -0.
3 maps to -0.
4 maps to -0.
5 maps to -0.
6 maps to -0.
7 maps to -0.
8 maps to -0.
9 maps to -0.
10 maps to 0
</pre>
|