i think it’s because the filter uses
intval() function to ensure an integer number is given instead of using
is_numeric().
but you can use your own filter snippet to support float vars as well.
here’s
mpyfs (multiply
float/
full
support) snippet. it’s the simplest.
Returns the input multiplied by any number (with float support), Rounds the result to 2 digits.
<?php
$output = '';
if (!empty($input) && is_numeric($input) && !empty($options) && is_numeric($options)) {
/* Multiply & Round the Float to 2 Digits */
$output = round($input * $options, 2);
}
else
$output = $input;
return $output;
?>
:)
and then simply use it as: [[*Price:mpy
fs=`1.196`]]
| Result: 1196 when price set to 1000
hope it helps..