Author Topic: izzit possible that...  (Read 5570 times)

DarkEnix

  • Posts: 67
  • Turrets: +10/-22
izzit possible that...
« on: March 11, 2008, 08:51:51 am »
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

  • Posts: 647
  • Turrets: +135/-83
    • Amanieu
Re: izzit possible that...
« Reply #1 on: March 11, 2008, 10:11:33 am »
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

  • Posts: 67
  • Turrets: +10/-22
Re: izzit possible that...
« Reply #2 on: March 11, 2008, 01:02:41 pm »
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

  • Posts: 1496
  • Turrets: +77/-73
    • My (Virtually) Infinite Source of Knowledge (and Trivia)
Re: izzit possible that...
« Reply #3 on: March 11, 2008, 11:18:34 pm »
.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

  • Posts: 67
  • Turrets: +10/-22
Re: izzit possible that...
« Reply #4 on: March 12, 2008, 02: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

techhead

  • Posts: 1496
  • Turrets: +77/-73
    • My (Virtually) Infinite Source of Knowledge (and Trivia)
Re: izzit possible that...
« Reply #5 on: March 12, 2008, 01:18:19 pm »
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

  • Posts: 27
  • Turrets: +1/-2
Re: izzit possible that...
« Reply #6 on: March 12, 2008, 05:05:14 pm »
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
« Last Edit: March 12, 2008, 05:06:56 pm by Scam »