| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Smarty divides by 3 incorrectly on a new server | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() I am changing servers and on the new server smarty is dividing by 3 incorrectly. I know that sounds strange, but I set up a test page in the process of tracking down my the storefront displays incorrectly.
http://160.79.206.160/test.php and here is the smarty math you can see that floor(100/4) = 25 but floor(100/3) = 1077979818 http://160.79.206.160/test.tpl Code:
has anyone else seen anything like this before? Any ideas on what I can do? Or am I just crazy, and is this the result it should be giving? Thanks a bunch! Justin
__________________
animator for hire onthez.com ------------------------ x-cart v4.0.5 Linux _________________ |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() A little more testing (that is shown at the links above) shows that it's not the divide but the floor() function that is causing the error. This is so strange.
Testing floor floor(1) = 1 floor(1.1) = 1072798105 floor (2) = 2 floor (2.2) = 1073846681 floor (3) = 3 floor (3.3) = 1074423398 Not sure at all where those numbers are coming from ideas? Justin
__________________
animator for hire onthez.com ------------------------ x-cart v4.0.5 Linux _________________ |
|||||||||
|
|||
X-Cart forums © 2001-2020
|