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
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

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
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

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

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
79
S
24
G
54
Posts: 4,746
Reputation: 40,755

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests