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
167
S
49
G
155
Posts: 8,113
Reputation: 100,772

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
97
S
21
G
12
Posts: 3,259
Reputation: 16,844

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

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
89
S
30
G
96
Posts: 5,160
Reputation: 63,956

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest