Sha256: 5f947806bfa0c2faa19a7438d16645146bca8b433449c66e9a307ffd0e69ef85

Contents?: true

Size: 344 Bytes

Versions: 106

Compression:

Stored size: 344 Bytes

Contents

// Returns $x * 2^$exp
// @param {Number} $x
// @param {Number} $exp
@function ldexp ($x, $exp) {
    $b: if($exp >= 0, 2, 1 / 2);
    @if $exp < 0 {
        $exp: $exp * -1;
    }
    @while $exp > 0 {
        @if $exp % 2 == 1 {
            $x: $x * $b;
        }
        $b: $b * $b;
        $exp: floor($exp * 0.5);
    }
    @return $x;
}

Version data entries

106 entries across 106 versions & 3 rubygems

Version Path
decidim-admin-0.11.2 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss
decidim-admin-0.12.0.pre app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss
decidim-admin-0.11.1 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss
decidim-admin-0.11.0.pre1 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss
decidim-admin-0.10.1 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss
decidim-admin-0.10.0 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss
decidim-admin-0.9.3 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss
decidim-admin-0.9.2 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss
decidim-admin-0.9.1 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss
decidim-admin-0.9.0 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss
decidim-admin-0.8.4 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss
decidim-admin-0.8.3 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss
decidim-admin-0.8.2 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss
decidim-admin-0.8.1 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss
decidim-admin-0.8.0 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss
decidim-admin-0.7.4 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss
decidim-admin-0.7.3 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss
decidim-admin-0.7.2 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss
decidim-admin-0.7.1 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss
decidim-admin-0.7.0 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss