1

I have come with a problem with programming language.

//php
$a = (int) (10.20 * 100);
echo $a; 
// expected output: 1020
// output: 1019
# python
int(10.20 * 100)
# expected output: 1020
# output: 1019
TeachMe
  • 535
  • 1
  • 5
  • 16

0 Answers0