With this code:
<?php
echo (int)(130.98 * 100) . "\n";
echo (int)(30.98 * 100) . "\n";
echo (int)(0.98 * 100) . "\n";
I get output:
13097
3098
98
Why is the first result 13097
???
With this code:
<?php
echo (int)(130.98 * 100) . "\n";
echo (int)(30.98 * 100) . "\n";
echo (int)(0.98 * 100) . "\n";
I get output:
13097
3098
98
Why is the first result 13097
???
Copyright © 2021 Jogjafile Inc.