Map range: Difference between revisions

No edit summary
Line 1,988:
 
=={{header|Ring}}==
{{incomplete|Ring|What maps to what in output?}}
<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.909
2 maps to -0.808
3 maps to -0.707
4 maps to -0.606
5 maps to -0.505
6 maps to -0.404
7 maps to -0.303
8 maps to -0.202
9 maps to -0.101
10 maps to 0
</pre>
 
2,468

edits