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 Image
B
164
S
49
G
113
Posts: 7,648
Reputation: 78,995

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
94
S
21
G
12
Posts: 3,250
Reputation: 16,710

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: 85
Reputation: 1,218

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
91
S
32
G
33
Posts: 3,005
Reputation: 27,527

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
84
S
27
G
70
Posts: 4,924
Reputation: 49,540

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests