|
-
Aug 16th, 2004, 04:31 PM
#1
Thread Starter
Frenzied Member
f.......
What does f mean in the following code:
Code:
D3DXMATRIX M;
M(0, 0) = 5.0f; // Set entry ij = 11 to 5.0f.
-
Aug 16th, 2004, 04:45 PM
#2
Not NoteMe
Treat 5.0 as a floating point number
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe
"I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
Have I helped you? Please Rate my posts. 
-
Aug 16th, 2004, 05:50 PM
#3
It means that you have a matrix and then at collum one row one you set that value to 5.0
-
Aug 16th, 2004, 06:11 PM
#4
Not NoteMe
Originally posted by NoteMe
It means that you have a matrix and then at collum one row one you set that value to 5.0
I think he's asking about the 'f' in 5.0f.
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe
"I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
Have I helped you? Please Rate my posts. 
-
Aug 16th, 2004, 06:14 PM
#5
-
Aug 16th, 2004, 06:22 PM
#6
Actually it means treat it as a "float", not as a "double", which is the default for floating point constants. Saves a little space in the executable and makes the assignment simpler.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Aug 16th, 2004, 07:48 PM
#7
PowerPoster
is it really that important to include the f?
is it really that important to worry about conservation of memory in todays computers?
I read they are inventing a RAM that works off no power, (the electrons in the air only) so it is able to store north and south alot easier also allowing for 1 chip to be 1GB of ram....I will find the article and post it.
The problem with this ram so far is 1 spark will **** it.
"From what was there, and was meant to be, but not of that was faded away." - - Steve Damm
"The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm
"When you do things right, people won't be sure if you did anything at all." - - God from Futurama
-
Aug 17th, 2004, 06:14 AM
#8
Is it so hard to add the f? Isn't it worth the single keystroke?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Aug 17th, 2004, 06:17 AM
#9
Thread Starter
Frenzied Member
Thanks guys
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|