Page 2 of 2

Re: Should I modify SFML???

Posted: Tue Feb 08, 2011 6:02 pm
by xiphirx
THe Floating Brain wrote:God I feel realy embaressed :oops: :oops: :oops:
GyroVorbis wrote: Honestly, why in fuck's name would you be using doubles? Why would you EVER need that kind of precision? That's only for exact numbers and scientific calculations.

And keep in mind that there is not a 1-to-1 relationship between an IEEE 32-bit single precision float (the variable you know as "float") and an integer. How many bytes are used to represent both? Float = 4 bytes. Integer = 4 bytes. They are literally the same size. They are literally both only capable of holding a permutation of their number of bits.
Damn C++ book lied to me :nono:
N64vSNES wrote:So...You want to fuck with SFML's source because you want to use a double over a float? :shock:
Not any more I did though beacuse I am apparently a terrible programmer :lol:
xiphirx wrote:I'm really confused....
How big are your input values? Do you know what the range of a long is?...
19 digets.
xiphirx wrote:

Code: Select all

//Go The Desired Speed.//
GotoX *= Speed;
GotoY *= Speed;
This is where your values are messed up, I think...
Why do you think that?
xiphirx wrote: Just to note, it looks like you don't have a good grasp on vectors. If you did, you would have probably used SFML's own vector2f class :P
hence...
Okay so I finally think I have a rough idea of vectors and I wrote these functions
Why the hell are you input values 19 digits long? Seriously?

Re: Should I modify SFML???

Posted: Tue Feb 08, 2011 6:05 pm
by THe Floating Brain
They are not :|

Re: Should I modify SFML???

Posted: Tue Feb 08, 2011 6:32 pm
by Ginto8
measuring precision of binary integers by decimal digits is not only ridiculous, it's pointless. 32 bits. Thats a little over 4 billion combinations, which means up to about 4 billion unsigned, 2 billion to negative 2 billion signed. Don't count binary ints by digits blease.

Re: Should I modify SFML???

Posted: Tue Feb 08, 2011 6:54 pm
by THe Floating Brain
Srry I ment range of accuracy :roll: ^
http://www.youtube.com/watch?v=VGO3CGVYi-E <- 0.0