Skip to content

gronke/polymer-unit-prefix

Repository files navigation

Polymer Element: unit-prefix

Converts values between qualtizations of the same units by looking up multiplication factors from a table.

Installation

bower install polymer-unit-convert

Supported Unit Quantizations

  • pico
  • nano
  • micro
  • milli
  • centi
  • deci
  • deca
  • hecto
  • kilo
  • mega
  • giga
  • terra

Examples

Distances

<unit-prefix value="500" from="meter" to="kilometer" result="{{result}}" />
<!-- result: 0.5 -->
<unit-prefix value="500" from="decimeter" to="millimeter" result="{{result}}" />
<!-- result: 1000 -->

Time

<unit-prefix value="60" from="minute" to="hour" result="{{result}}" />
<!-- result: 1 -->

About

Polymer element for unit prefix conversion

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages