2024-11-24 08:51:34 +01:00
|
|
|
%import floats
|
|
|
|
%import math
|
2024-11-24 00:53:09 +01:00
|
|
|
%import textio
|
|
|
|
%zeropage basicsafe
|
2024-11-23 15:51:38 +01:00
|
|
|
|
2024-11-14 00:54:07 +01:00
|
|
|
main {
|
2024-11-24 07:28:33 +01:00
|
|
|
sub start() {
|
2024-11-24 08:51:34 +01:00
|
|
|
floats.print(floats.interpolate(0, 0, 10, 1000, 2000))
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uw(math.interpolate(10, 10, 20, 100, 200))
|
|
|
|
txt.nl()
|
|
|
|
floats.print(floats.interpolate(2.22, 0, 10, 1000, 2000))
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uw(math.interpolate(12, 10, 20, 100, 200))
|
|
|
|
txt.nl()
|
|
|
|
floats.print(floats.interpolate(5.0, 0, 10, 1000, 2000))
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uw(math.interpolate(15, 10, 20, 100, 200))
|
|
|
|
txt.nl()
|
|
|
|
floats.print(floats.interpolate(10, 0, 10, 1000, 2000))
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uw(math.interpolate(20, 10, 20, 100, 200))
|
|
|
|
txt.nl()
|
2024-11-08 19:43:59 +01:00
|
|
|
}
|
2024-11-05 23:56:58 +01:00
|
|
|
}
|