note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
floatmul
warning
This function starts with lowercase letter.
คำอธิบาย
Multiplies two floats with each other.
Name | Description |
---|---|
oper1 | First Float. |
oper2 | Second Float, the first one gets multiplied with. |
ส่งคืน
The product of the two given floats
ตัวอย่าง
public OnGameModeInit()
{
new Float:Number1 = 2.3, Float:Number2 = 3.5; //Declares two floats, Number1 (2.3) and Number2 (3.5)
new Float:Product;
Product = floatmul(Number1, Number2); //Saves the product(=2.3*3.5 = 8.05) of Number1 and Number2 in the float "Product"
return 1;
}
บันทึก
tip
This function is rather redundant, for it is no different than the conventional multiplication operator (*).