0
我有一個函數,使範圍從0到1的值簡化。真實世界值是0到230和230到0如何用適當的「subdecimal轉換「值並將輸出轉換回整數?時間也在功能外處理將整數值轉換爲功能的十進制值
x=0
timer=0 /milliseconds/
while x < 230
<convert x to something the function can use, probably distance/time?)
x=function(x)
<convert x back to the real world pixel value>
object.moveto(x,100)
end while
這種轉換類型的正確術語是什麼?
所以...你想將0轉換爲0和1轉換爲230? –