Evaluating a floating point variable in Scheme language

浪子不回头ぞ 提交于 2019-12-02 05:32:46

Try this:

(do ((count 111/10 (+ count 1/10))) ((>= count 12))
  (ti-menu-load-string 
   (format #f "file read-data data-~2,3F.dat" count)))

I assume format is from SRFI-48 Intermediate Format Strings. I've changed the numbers to rational numbers because adding 0.1 gives you rounding errors in floating point.

I think I have figured that out:

data-~.3f.dat
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!