Display the drop-down list

Test of round()

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #4 : test success
Example #5 : test success
Example #6 : test success
Example #7 : test success
Example #8 : test success
Example #9 : test success
Example #10 : test success
Example #11 : test success
Example #12 : test success
Example #13 : test success
Example #14 : test success
Example #15 : test success
Example #16 : test success
Example #17 : test success
Example #18 : test success
Example #19 : test success
Example #20 : test success
Example #21 : test success
Example #22 : test success
Example #23 : test success
Example #24 : test success
Example #25 : test success
Example #26 : test success
Example #27 : test success
Example #28 : test success
Example #29 : test success
Example #30 : test success
Example #31 : test success
Example #32 : test success
Example #1
$input = 3.4
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 3.0,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = 3.5
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 4.0,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = 3.6
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 4.0,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #4
$input = [
  
=> 3.6,
  
=> 0,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 4.0,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #5
$input = [
  
=> 1.95583,
  
=> 2,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 1.96,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #6
$input = [
  
=> 1241757,
  
=> -3,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 1242000.0,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #7
$input = [
  
=> 5.045,
  
=> 2,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 5.05,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #8
$input = [
  
=> 5.055,
  
=> 2,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 5.06,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #9
$input = [
  
=> 9.5,
  
=> 0,
  
=> 'PHP_ROUND_HALF_UP',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 10.0,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #10
$input = [
  
=> 9.5,
  
=> 0,
  
=> 'PHP_ROUND_HALF_DOWN',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 9.0,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #11
$input = [
  
=> 9.5,
  
=> 0,
  
=> 'PHP_ROUND_HALF_EVEN',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 10.0,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #12
$input = [
  
=> 9.5,
  
=> 0,
  
=> 'PHP_ROUND_HALF_ODD',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 9.0,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #13
$input = [
  
=> 8.5,
  
=> 0,
  
=> 'PHP_ROUND_HALF_UP',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 9.0,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #14
$input = [
  
=> 8.5,
  
=> 0,
  
=> 'PHP_ROUND_HALF_DOWN',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 8.0,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #15
$input = [
  
=> 8.5,
  
=> 0,
  
=> 'PHP_ROUND_HALF_EVEN',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 8.0,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #16
$input = [
  
=> 8.5,
  
=> 0,
  
=> 'PHP_ROUND_HALF_ODD',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 9.0,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #17
$input = [
  
=> 1.55,
  
=> 1,
  
=> 'PHP_ROUND_HALF_UP',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 1.6,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #18
$input = [
  
=> 1.54,
  
=> 1,
  
=> 'PHP_ROUND_HALF_UP',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 1.5,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #19
$input = [
  
=> -1.55,
  
=> 1,
  
=> 'PHP_ROUND_HALF_UP',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => -1.6,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #20
$input = [
  
=> -1.54,
  
=> 1,
  
=> 'PHP_ROUND_HALF_UP',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => -1.5,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #21
$input = [
  
=> 1.55,
  
=> 1,
  
=> 'PHP_ROUND_HALF_DOWN',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 1.5,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #22
$input = [
  
=> 1.54,
  
=> 1,
  
=> 'PHP_ROUND_HALF_DOWN',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 1.5,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #23
$input = [
  
=> -1.55,
  
=> 1,
  
=> 'PHP_ROUND_HALF_DOWN',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => -1.5,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #24
$input = [
  
=> -1.54,
  
=> 1,
  
=> 'PHP_ROUND_HALF_DOWN',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => -1.5,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #25
$input = [
  
=> 1.55,
  
=> 1,
  
=> 'PHP_ROUND_HALF_EVEN',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 1.6,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #26
$input = [
  
=> 1.54,
  
=> 1,
  
=> 'PHP_ROUND_HALF_EVEN',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 1.5,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #27
$input = [
  
=> -1.55,
  
=> 1,
  
=> 'PHP_ROUND_HALF_EVEN',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => -1.6,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #28
$input = [
  
=> -1.54,
  
=> 1,
  
=> 'PHP_ROUND_HALF_EVEN',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => -1.5,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #29
$input = [
  
=> 1.55,
  
=> 1,
  
=> 'PHP_ROUND_HALF_ODD',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 1.5,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #30
$input = [
  
=> 1.54,
  
=> 1,
  
=> 'PHP_ROUND_HALF_ODD',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 1.5,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #31
$input = [
  
=> -1.55,
  
=> 1,
  
=> 'PHP_ROUND_HALF_ODD',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => -1.5,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #32
$input = [
  
=> -1.54,
  
=> 1,
  
=> 'PHP_ROUND_HALF_ODD',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => -1.5,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]