public function toUnit()
    {
        if ($this->divisibility <= 0)
            return $this->toMicro();

        $div = pow(10, $this->getDivisibility());
        return ($this->toMicro() / $div);
    }
public function toUnit()
    {
        if ($this->divisibility <= 0)
            return $this->toMicro();

        $div = pow(10, $this->getDivisibility());
        return ($this->toMicro() / $div);
    }
public function toUnit ( ) { if ( $ this -> divisibility <= 0 ) return $ this -> toMicro ( ) ; $ div = pow ( 10 , $ this -> getDivisibility ( ) ) ; return ( $ this -> toMicro ( ) / $ div ) ; }
Helper to return UNITs amounts. This method will return floating
point numbers. The divisibility can be set using `setDivisibility`
in case of different mosaics.

@return float
Helper to return UNITs amounts . This method will return floating point numbers . The divisibility can be set using setDivisibility in case of different mosaics .