News:

Come Chat with us live! Learn how HERE!

Main Menu

izzit possible that...

Started by DarkEnix, March 11, 2008, 07:51:51 AM

DarkEnix

izzit possible that

use / as a divide sign?

if so , i cant change the size of builds using /3

if not , any sign use as divide?

Amanieu

No idea what you're talking about... ::)
Quote
< kevlarman> zakk is getting his patches from shady frenchmen on irc
< kevlarman> this can't be a good sign :P

DarkEnix

ok , lets say

1.0f              // model scale

can i put it as

1.0f/3              //model scale

if i want it to divide by 3

techhead

.33f
It don't think it will work otherwise. Besides, if you can't do basic arithmetic, you probably shouldn't be coding.
I'm playing Tremulous on a Mac!
MGDev fan-club member
Techhead||TH
/"/""\"\
\"\""/"/
\\:.V.://
Copy and paste Granger into your signature!

DarkEnix

well , you should be saying that the computer have no brains and cant do basic arithmetic

they can juz

1
-
3

or

   .
0.3

techhead

Quote from: DarkEnix on March 12, 2008, 01:50:17 AM
well , you should be saying that the computer have no brains and cant do basic arithmetic

they can juz

1
-
3

or

   .
0.3
Computers cannot do arithmetic on numbers inside lines of code unless you add more lines of code telling it to do the arithmetic. Also, Quake 3 doesn't handle repeating decimals well, it rounds them anyway. Building sizes are in "Quake units" and must be whole numbers, AFAIK. Besides, try putting either of the numbers you used in your last post into a single line of code.
I'm playing Tremulous on a Mac!
MGDev fan-club member
Techhead||TH
/"/""\"\
\"\""/"/
\\:.V.://
Copy and paste Granger into your signature!

Scam

#6
What you said is valid way to divide. Why don't you try if it works before asking?

1.0f / 3; //Is valid.
----
float f = 1.0f;
f /= 3; //Is valid