|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
3.2.2.6.3
In the #range variety, Low_Value and High_Value are floats separated by a
comma and enclosed in parentheses. If Low_Value <= Switch_Value and
Switch_Value<=High_Value then the condition is true.
Should perhaps be:
If Low_Value >= Switch_Value
:)
--
Phil Cook
--
All thoughts and comments are my own unless otherwise stated and I am
happy to be proven wrong.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Phil Cook <phi### [at] nospamdeckingdealscouk> wrote:
> 3.2.2.6.3
> In the #range variety, Low_Value and High_Value are floats separated by a
> comma and enclosed in parentheses. If Low_Value <= Switch_Value and
> Switch_Value<=High_Value then the condition is true.
> Should perhaps be:
> If Low_Value >= Switch_Value
Are you sure?
--
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}// - Warp -
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Phil Cook wrote:
> Should perhaps be:
> If Low_Value >= Switch_Value
I've found a very effective way of preventing this sort of error is to
never use > or >=.
A <= B && B <= C means "B is between A and C".
now() < saved() + 15
means if the close is before fifteen minutes after the saved time.
Etc.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
And lo on 20 Aug 2004 16:19:20 -0400, Warp <war### [at] tagpovrayorg> did
spake, saying:
> Phil Cook <phi### [at] nospamdeckingdealscouk> wrote:
>> 3.2.2.6.3
>
>> In the #range variety, Low_Value and High_Value are floats separated by
>> a
>> comma and enclosed in parentheses. If Low_Value <= Switch_Value and
>> Switch_Value<=High_Value then the condition is true.
>
>> Should perhaps be:
>> If Low_Value >= Switch_Value
>
> Are you sure?
Nope :) Perhaps Switch_Value >= Low_Value, sorry it just read wrong to me
in conjuction with the example which goes:
#range (LOW_1,HIGH_1)
// This section is parsed if (VALUE>=LOW_1)&(VALUE<=HIGH_1)
--
Phil Cook
--
All thoughts and comments are my own unless otherwise stated and I am
happy to be proven wrong.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Phil Cook <phi### [at] rocainnospamfreeservecouk> wrote:
> Nope :) Perhaps Switch_Value >= Low_Value
But why? It's the same thing.
--
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}// - Warp -
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
And lo on 22 Aug 2004 12:41:35 -0400, Warp <war### [at] tagpovrayorg> did
spake, saying:
> Phil Cook <phi### [at] rocainnospamfreeservecouk> wrote:
>> Nope :) Perhaps Switch_Value >= Low_Value
>
> But why? It's the same thing.
>
Because the text reads Low_Value <= Switch_Value, Switch_Value<=High_Value
and the example reads the equivalent of Switch_Value >= Low_Value,
Switch_Value <= High_Value. Yes mathematically they are the same but it's
not consistent grammatically.
--
Phil Cook
--
All thoughts and comments are my own unless otherwise stated and I am
happy to be proven wrong.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |