POV-Ray : Newsgroups : povray.general : Turn a string of digits into a number? : Re: Turn a string of digits into a number? Server Time
24 Apr 2024 00:43:37 EDT (-0400)
  Re: Turn a string of digits into a number?  
From: Jonathan Bush
Date: 2 Dec 2021 19:25:00
Message: <web.61a962ccfbbd2852d80ced0afde6c206@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "Jonathan Bush" <djb### [at] gmxcom> wrote:
> > String functions for POVray include ways to turn a numerical value into a
> > string. But is there a function to do the converse, turn a string of digits into
> > an integer?
>
> You want val().
>
> http://www.povray.org/documentation/view/3.6.1/228/
>
> val(S) Convert string S to float. Returns a float value that is represented by
> the text in string S. For example val("123.45") is 123.45 as a float.

Thank you! I missed that. I don't see any way to change the subject to include
the word Solved, using a browser.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.