anonīms Posted April 21, 2011 Report Share Posted April 21, 2011 Ka panākt, ka tiek saskaitīti divi var, kuri ir ar komatiem? tb basket_money = Math.round(basket_money+delivery); alert(basket_money); basket_money = 0.71 delivery = 3.90 izvada 6, nez kapēc. Ar veseliem skaitļiem viss ok Quote Link to comment Share on other sites More sharing options...
0 anonīms Posted April 24, 2011 Author Report Share Posted April 24, 2011 Šis ir tīri client side variants, jo viss tāpat tiek pārbaudīts un apčamdīts vēl php galā. Quote Link to comment Share on other sites More sharing options...
Question
anonīms
Ka panākt, ka tiek saskaitīti divi var, kuri ir ar komatiem?
tb
basket_money = 0.71
delivery = 3.90
izvada 6, nez kapēc. Ar veseliem skaitļiem viss ok
Link to comment
Share on other sites
16 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.