The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unexpected behaviour with Round() function
#1
Hi Gintaras
This code with QM 2.3.0.1:
out Round(0.5 0)
out Round(1.5 0)
out Round(2.5 0)
out Round(3.5 0)
out Round(4.5 0)
out Round(5.5 0)
out Round(6.5 0)
out Round(7.5 0)
out Round(8.5 0)

Produces this output:
0
2
2
4
4
6
6
8
8

Which is not what I was expecting.
Cheers,
John


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)