maths question
I would like to know how to multiply/divide floats
for example i have number 33 , i need to get 0.33 if i just write new float:var = 33 / 100.0 it gives me the tag missmatch error and wrong number ive also tried floatmul and floatdiv but it didnt work thank you for your help |
Re: maths question
an example:
PHP Code:
|
Re: maths question
Code:
public dividef(one, another) |
Re: maths question
no. will got problems with return (tag mismatch)
|
Re: maths question
Quote:
|
Re: maths question
1)First read this : http://wiki.amxmodx.org/index.php/Pawn#Floats It's few lines
2) return another value |
Re: maths question
im really stuck now
Code:
public dividef(one)why can this happen? floatdiv gave the same result :) removed floatround and all worked fine |
Re: maths question
Code:
if it doesnt work Code:
|
Re: maths question
Why create vars?
Code:
Code:
Code:
|
| All times are GMT -4. The time now is 00:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.