array indices burn in hell for all eternity!

Started by Shadow, June 02, 2009, 09:32:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Shadow

AAARRRGGG

why does

index = (int) (distanceIndex + 0.5)
and
index = (int) distanceIndex + 0.5

produce such bloody drastically different results....?
<=holbs-.. ..-holbs=> <=holbs-..

Briar

ummm....the same reason (x)(3y+2) is different than (x)3y+2 ?  just guessing...
At the risk of ruining Briar's career by disparaging her find of the famous Sackaleaderer horse...

Quote from: Ungatt Trunn II
Yes. I wear high heels Krowdon. Any tips on how I should do my hair?

Shadow

#2
No, int isn't a number, it is an operator that converts everything after it to an integer. It doesn't get multiplied through haha. Although maybe it converts only the first argument if there aren't brackets.... hmm...
<=holbs-.. ..-holbs=> <=holbs-..