Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi guys,
it's been a while since i visit here to give my help (soon i'll be back) but now i have one of my own 😀
i need a function to parse the value (coming from sysvar cannoscalevalue) and i like it to be recursive.
it's now getting 2 args:
1. n (which is cannoscalevalue can be 0.1 0.01 0.001 etc and each iteration is multiplied by 10)
2. s (each iteration it also multiplied by 10)
so here is what i have:
(defun nparse (n s)
(cond
((>= n 1) s)
((nparse (setq n (* n 10)) (setq s (* s 10))))
)
)
uses: (nparse 0.01 1)
but i do not like the 1 arg for s to reset, wonder if someone can come up to a version to drop the 1.
thanks in advanced
Moshe
Solved! Go to Solution.