divzero(
NUMERATOR
,
DENOMINATOR
)
The divzero( function divides two numbers, returns zero if denominator is zero.
Parameters
This function has two parameters:
numerator – is the number you want to divide.
denominator – is the number you want to divide by.
Description
The divzero( function divides two numbers. However, unlike the / or ÷ operator, the divzero function does not return infinity if you attempt to divide by zero. If you attempt to divide by zero, this function simply returns zero.
divzero(15,3) ☞ 5
divzero(15,4) ☞ 3.75
divzero(15,0) ☞ 0
See Also
- - -- subtracts the numeric value on the right from the numeric value on the left.
- * -- multiplies the numeric value on the left by the numeric value on the right.
- / -- divides one numeric value by another.
- \ -- performs integer division.
- ^ -- raises a number to a power.
- + -- works differently depending on the type of operands used with it.
If both operands are numeric, it does numerical addition.
If either operand is text the + operator concatenates (joins together) the two operands.
- abs( -- calculates the absolute value of a number.
- ceil( -- converts a number to an integer, truncating toward positive infinity.
- divzeroerror( -- divides two numbers, returns an error if the denominator is zero.
- fix( -- converts a number to an integer, truncating toward zero.
- fixed -- converts a floating point number to fixed point.
- float( -- converts a fixed point number to a floating point number.
- infinity( -- returns infinity.
- int( -- converts a number to an integer, truncating toward negative infinity.
- mod -- computes the remainder (modulo) after integer division.
- nan( -- checks to see if a numeric value is invalid.
- nanerror( -- converts invalid numeric values into an error.
- nanzero( -- converts invalid numeric values into zero.
- randominteger( -- generates a random integer between the starting and ending values.
- rnd( -- generates a random number between 0 and 1.
- round( -- rounds a number to a specified increment.
- validnumber( -- checks to see if a numeric value is valid.
History
10.0 | No Change | Carried over from Panorama 6.0 |