Docs.rs
rust-css-parser-2.3.0
Go to latest version
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module math
rust_
css_
parser
2.3.0
Module math
Module Items
Enums
Functions
In rust_
css_
parser::
ast::
math
rust_css_parser
::
ast
::
math
Module
math
Copy item path
Source
Expand description
Port of
src/ast/math/math.ts
.
Enums
§
NumOr
Fraction
a number or a fraction
[numerator, denominator]
Functions
§
compute
compute an arithmetic operation. fractions are returned when shorter than the decimal value
gcd
greatest common divisor
rem
the number of decimals of the non integer values, 0 when they are all integers
simplify
simplify a fraction