Skip to main content

Name

ec_sub — perform subtraction of two numbers

Synopsis

ec_sub { number1 } { number2 }

Description

ec_sub takes two numbers, subtracts the second number from the first number and returns the result.

$a = 43;
$b = "55.54";
$sub = ec_sub $a $b;
ec_log " ${a} - ${b} is ${sub}";
#sub is -12.540000
Was this page helpful?