parent
4b72242749
commit
643e49d56e
4 changed files with 52 additions and 0 deletions
@ -0,0 +1,14 @@ |
||||
<?php |
||||
/** |
||||
* This file is part of TypePHP(AOT). |
||||
* |
||||
* @link https://www.swoole.com/aot/ |
||||
* @contact service@swoole.com |
||||
*/ |
||||
|
||||
function main(): void |
||||
{ |
||||
$decimal = std::decimal('2.567'); |
||||
$whole = round($decimal); |
||||
$precise = round($decimal, 2); |
||||
} |
||||
Loading…
Reference in new issue