Distortion Map pulling values from an array problem.

For questions about using Classic.

Post » Sun May 22, 2011 7:30 pm

[quote:3572h17w]It returns the smallest integer not larger than the input.[/quote:3572h17w]
But by that logic wouldn't ceil(1.9) return 1?
Image ImageImage
B
172
S
50
G
183
Posts: 8,440
Reputation: 115,599

Post » Sun May 22, 2011 7:31 pm

@rojo:
I don't see what you mean
you're saying ceil(float(0))==1
is the correct behavior?

I understand that float accuracy is always an issue, but I thought floats could hold absolute 0's
Spriter Dev
B
101
S
22
G
12
Posts: 3,274
Reputation: 17,079

Post » Sun May 22, 2011 7:34 pm

[quote:3rex9113]But by that logic wouldn't ceil(1.9) return 1?[/quote:3rex9113]

Mistake on my part. I meant "not less".
B
8
S
2
G
2
Posts: 86
Reputation: 1,220

Post » Sun May 22, 2011 7:37 pm

[quote="lucid":29tb32do]I understand that float accuracy is always an issue, but I thought floats could hold absolute 0's[/quote:29tb32do]

As far as I've heard they can't.
Moderator
B
95
S
34
G
33
Posts: 3,007
Reputation: 27,876

Post » Sun May 22, 2011 7:41 pm

Opps, I was misreading 0/2 as 1/2. At any rate it is a bug, and will be fixed next version.

If you can find any other expression related issue I can try to fix those too while I'm in there.
B
94
S
33
G
118
Posts: 5,394
Reputation: 75,849

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests