Created
December 2, 2010 08:52
-
-
Save ideesimple/725005 to your computer and use it in GitHub Desktop.
Multiplier prix par un nombre via snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//[[*Price:mpyfs=`1.196`]] | |
$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; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment