Map range: Difference between revisions

no edit summary
(Add WDTE.)
No edit summary
Line 2,801:
10 0.00000
</pre>
 
=={{header|Yabasic}}==
<lang Yabasic>sub MapRange(s, a1, a2, b1, b2)
return b1+(s-a1)*(b2-b1)/(a2-a1)
end sub
for i = 0 to 10 step 2
print i, " : ", MapRange(i,0,10,-1,0)
next</lang>
 
=={{header|zkl}}==
672

edits