[ create a new paste ] login | about

Link: http://codepad.org/MkoWgAA1    [ raw code | output | fork ]

PHP, pasted on Jan 19:
1
2
3
4
5
6
7
8
9
10
11
<?php

$sum = 1.0 + 0.1 + 0.1;

if ($sum > 1.2) {
  print("1.2 > 1.2");
} else if ($sum < 1.2) {
  print("1.2 < 1.2");
} else {
  print("1.2 == 1.2");
}


Output:
1
1.2 > 1.2


Create a new paste based on this one


Comments: