Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/05/2004 at 05:41, xxxxxxxx wrote:
User Information: Cinema 4D Version: 8.5 Platform: Windows ; Language(s) : C.O.F.F.E.E ;
--------- I need to be able to convert a string to an integer. It looked like int() might work but I get errors. Is this the right function or is there another? Thanks.
On 17/05/2004 at 06:18, xxxxxxxx wrote:
StringToLong() will do it.
On 17/05/2004 at 06:23, xxxxxxxx wrote:
It might be eval() in C.O.F.F.E.E. if I remember correctly. (Though it does some additional evaluation, e.g. "5+5" will be 10. Whether that is good or bad depends on the context I guess.)
On 17/05/2004 at 06:51, xxxxxxxx wrote:
upps, haven´t noticed it was coffee. sorry. evaluate() will do so in COFFEE, but you need to cast it after the parsing for it returns a float value.
On 17/05/2004 at 19:25, xxxxxxxx wrote:
Thanks you guys. That's what I needed. I was looking for a StringToInt, Int, ctoi, or something of the sort. I never read about evaluate. That did the trick. Crew