Map range: Difference between revisions

Content deleted Content added
No edit summary
CalmoSoft (talk | contribs)
Line 1,988: Line 1,988:


=={{header|Ring}}==
=={{header|Ring}}==
{{incomplete|Ring|What maps to what in output?}}
<lang ring>
<lang ring>
# Project : Map range
# Project : Map range
Line 1,995: Line 1,994:
# Email : <calmosoft@gmail.com>
# Email : <calmosoft@gmail.com>


decimals(1)
al = 0
al = 0
ah = 10
ah = 10
Line 2,000: Line 2,000:
bh = 0
bh = 0
for n = 0 to 10
for n = 0 to 10
see " maps to " + maprange(al, bl, n) + nl
see "" + n + " maps to " + maprange(al, bl, n) + nl
next
next
Line 2,008: Line 2,008:
Output:
Output:
<pre>
<pre>
maps to -1
0 maps to -1
maps to -0.90
1 maps to -0.9
maps to -0.80
2 maps to -0.8
maps to -0.70
3 maps to -0.7
maps to -0.60
4 maps to -0.6
maps to -0.50
5 maps to -0.5
maps to -0.40
6 maps to -0.4
maps to -0.30
7 maps to -0.3
maps to -0.20
8 maps to -0.2
maps to -0.10
9 maps to -0.1
maps to 0
10 maps to 0
</pre>
</pre>