POV-Ray : Newsgroups : povray.general : String to long message : Re: String to long message Server Time
1 Aug 2024 04:10:18 EDT (-0400)
  Re: String to long message  
From: Mike Williams
Date: 15 Mar 2006 23:47:17
Message: <ppu51OAerOGEFwcI@econym.demon.co.uk>
Wasn't it Alain who wrote:
>Mike Williams nous apporta ses lumieres en ce 14/03/2006 11:07:

>> 
>>>Hi NG
>>>I have a ugly problem with "String to long"
>>>I cant see ho to makes any long strings...
>> 
>> 
>> If you need those really huge numbers you can use scientific notation
>> 
>> #local lgt1_intense = 17976900000000001e293;
>> 
>> (I think it's e293. I might have lost count)
>> 
>i don't think that any PC can deal with values THAT large! The FPU just can't 
>deal with that.

The FPU might not deal with that, but POV-Ray will quite happily parse
scene files that use such numbers. I did check that the POV parser
accepts the line
  #local lgt1_intense = 17976900000000001e293;
before I posted and the scene runs normally. I didn't ask POV to
actually do any arithmetic with the value, that would probably fail
depending on the details of that arithmetic. 

E.g. str(lgt1_intense,-1,-1) returns "1.#INF00"

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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