fml sound feature

This commit is contained in:
Steffen Schröder
2014-01-05 16:04:55 +01:00
parent 417e460588
commit b10575d4f2
5 changed files with 168 additions and 23 deletions

View File

@ -20,4 +20,17 @@ abstract class Builder {
$labelText = PHP_EOL . "***{$labelName}***" . PHP_EOL . "***{$implementationCode}***" . PHP_EOL;
return $labelText;
}
/**
* Get the Real String-Representation of the given Value
*
* @param float $value
* @return string
*/
public static function getReal($value) {
$value = (float) $value;
$stringVal = (string) $value;
if (!fmod($value, 1)) $stringVal .= '.';
return $stringVal;
}
}