POV-Ray : Newsgroups : povray.general : String to long message Server Time
26 Dec 2024 14:00:01 EST (-0500)
  String to long message (Message 1 to 5 of 5)  
From:
Subject: String to long message
Date: 14 Mar 2006 10:32:57
Message: <4416e229$1@news.povray.org>
Hi NG
I have a ugly problem with "String to long"
I cant see ho to makes any long strings...
I have EAGLE 3D to display designed prints. I have the standard installation 
windows.

the pov file look like this:
#local lgt1_pos_x = 0;
#local lgt1_pos_y = 0;
#local lgt1_pos_z = 0;
#local lgt1_intense = 
179769000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000;
#local lgt2_pos_x = 0;
#local lgt2_pos_y = 0;
#local lgt2_pos_z = 0;
#local lgt2_intense = 
179769000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000;
#local lgt3_pos_x = 0;
#local lgt3_pos_y = 0;
#local lgt3_pos_z = 0;
#local lgt3_intense = 
179769000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000;
#local lgt4_pos_x = 0;
#local lgt4_pos_y = 0;
#local lgt4_pos_z = 0;
#local lgt4_intense = 
179769000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000;

how to come from this long string?
any ideeas ?
thank's for help

Andrew Despont


Post a reply to this message

From: Mike Williams
Subject: Re: String to long message
Date: 14 Mar 2006 11:11:29
Message: <p5p5BHANpuFEFwF2@econym.demon.co.uk>

>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)

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From:
Subject: Re: String to long message
Date: 15 Mar 2006 02:01:36
Message: <4417bbd0$1@news.povray.org>
Hi all
I have found the error

When i use a EAGLE PCB tu make a prov, the dimension of the board was not 
set.
any more errors into the pov file.

I think it is an error from eagle 3D to pov converter!
I will publish this on to the Eagle newsgroup.

Thankyou all for help.

"Mike Williams" <nos### [at] econymdemoncouk> schrieb im Newsbeitrag 
news:p5p### [at] econymdemoncouk...

>>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)
>
> -- 
> Mike Williams
> Gentleman of Leisure


Post a reply to this message

From: Alain
Subject: Re: String to long message
Date: 15 Mar 2006 20:08:52
Message: <4418baa4@news.povray.org>
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.

-- 
Alain
-------------------------------------------------
WARNING: the crumsumpten of alcohol may Mack you tink you kan tpye reel gode


Post a reply to this message

From: Mike Williams
Subject: Re: String to long message
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.