Converting ft. into km.
#1

So, this is the variable which calculates the distance in ft.

pawn Код:
dist = floatsqroot(floatpower(floatabs(floatsub(PosX[i],X)),2)+floatpower(floatabs(floatsub(PosY[i],Y)),2)+floatpower(floatabs(floatsub(PosZ[i],Z)),2));
For example it gives me 10ft and i saw that 1ft is 0.0003048 KM.

So i guess i must do:

10 * 0.0003048 ?
Reply


Messages In This Thread
Converting ft. into km. - by Zh3r0 - 16.02.2011, 16:38
Re: Converting ft. into km. - by Serbish - 16.02.2011, 16:54

Forum Jump:


Users browsing this thread: 1 Guest(s)