Numbers :-<

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Numbers :-<

    hi friend .... sorry for wanting help ..but its the last time ..bcoz i dont work whit numb. very much ...u dont k the next thing:

    for ex: $extractnumber = .........
    $number = $extractnumber \ 4 ;

    ex : $number = 9 \ 4;

    $number = 2,25

    i want it like this : 2 and 0,25 (separated) not 2,25 (=2+0.25)

    thx
    Last edited by i0nutzxp; 30.05.09, 17:43.
    <?php unlink('World/Europe/Romania.country'); ?>

    #2
    salza ionutz

    use ba ||

    Comment


      #3
      something like this will work:

      $number = 9 / 4;
      $number_before_coma = intval($number);
      $number_after_coma = $number - $number_before_coma;
      Advertise your mobile site for FREE with AdTwirl

      Comment


        #4
        one more problem whit this numbers ... 9.30769230769 can be ransformed in 9.3 or 9.30 ? bcoz its 2 long:P
        <?php unlink('World/Europe/Romania.country'); ?>

        Comment


          #5
          $string = round($string,1);
          $string = round($string,2);

          Comment

          Working...
          X