Artenis Posted May 14, 2009 Report Share Posted May 14, 2009 (edited) $visi[$i] <_-- izvadās baigi labi $visi[$i]-$v <---- izvadās: -$v $starp=$visi[$i]-$v; izvadu: $starp un izvadās atkal $v Kā to visi[$j] varētu uzdabūt, lai atpazīst kā float. skaitļi piemēram $visi(75.8) un $v(49.91) (float) funkcija nederēja! Paldies. Edited May 14, 2009 by Artenis Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted May 14, 2009 Report Share Posted May 14, 2009 http://lv.php.net/manual/en/function.floatval.php Quote Link to comment Share on other sites More sharing options...
bubu Posted May 14, 2009 Report Share Posted May 14, 2009 Es, ja godīgi, nesapratu kas par problēmu. Floatus izvada tāpat kā integerus vai stringus: echo $x; Quote Link to comment Share on other sites More sharing options...
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.