Posts: 20
Threads: 2
Joined: Mar 2006
Hi,
I'm trying to convert some C/C++ code to BASIC but having a problem with understanding what .0f means in the following line
Code:
variable = 255.0f/(5000-10)
I've tried searching for answer/defs but its eluding me, I know its really simple but any help is appreciated.
Thanks,
cirux
Posts: 320
Threads: 24
Joined: Feb 2005
It means that the number is a floating-point number. The f in 0f tells you that it's floating-point, and the 0 is the part after the decimal.
.14159265358979323846264338327950288419716939937510582709445
Glarplesnarkleflibbertygibbertygarbethparkentalelelangathaffendoinkadonkeydingdonkaspamahedron.
Posts: 20
Threads: 2
Joined: Mar 2006
thanks for the help, I thought it might me something like that
Posts: 324
Threads: 12
Joined: Nov 2005
Whatthehelliswhitespace?
stylin:
i have NEVER seen a c program that was formatted as i would do it. ever.
i mean seriously. i thought that was the reason you end statements with ';', so that you could use basically unlimited whitespace... doesn't that just seem refrickintarded now!
[/rant]
Posts: 222
Threads: 10
Joined: Mar 2006
That would throw a syntax error cha0s, the program doesn't know when the rant starts, so it can't tell us to skip it and ignore...
If only we knew before it happened Cha0s....If only we knew...
I like taco bell. Taco bell likes me. I like eating Chalupas, and spamming. Yes spamming. I like taco bell. Spiderman eats there too. I just saw white noise, now I'm bored with nothing to do!
Oh the Pirate Ninja Cowboy Hero (AKA Alexander Joseph Pritchard), please come to save me!
Oh the Pirate Ninja Cowboy Hero, please put on my clooothes!
Bam bam! Stop! Hammertime!
will Live Forever, or Die Trying >_<;;
Posts: 324
Threads: 12
Joined: Nov 2005
Uhh ... why don't you put this nice little white jacket on, Pritchard? It's for the best ...
stylin:
Posts: 484
Threads: 14
Joined: Apr 2005
Quote:i have NEVER seen a c program that was formatted as i would do it. ever
I have never seen a BASIC program that was formatted the way you would do it.
Code:
? "Hello, World!"
<17 lines of white space>
sleep
EVEN MEN OF STEEL RUST.
um.. that isn't my normal style =p maybe if im pasting code in between other code i'll leave long whitespace 'artifacts'..