Skip to content

Commit

Permalink
Fix errors in the toBest() conversion examples
Browse files Browse the repository at this point in the history
The comments below each `convert()` example are meant to demonstrate the library's result, but a few of the comments listen an incorrect value or unit. Ran each of the examples in this code block and adjusted the comments based on the library's result.
  • Loading branch information
cuibonobo authored and jiminikiz committed Jul 19, 2018
1 parent e3a481f commit d950cd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ convert(12000).from('mm').toBest({ exclude: ['m'] })
// 1200 Centimeters (the smallest unit excluding meters)

convert(900).from('mm').toBest({ cutOffNumber: 10 });
// 900 Centimeters (the smallest unit with a value equal to or above 10)
// 90 Centimeters (the smallest unit with a value equal to or above 10)

convert(1000).from('mm').toBest({ cutOffNumber: 10 })
// 10 Meters (the smallest unit with a value equal to or above 10)
// 100 Centimeters (the smallest unit with a value equal to or above 10)
```

You can get a list of the measurement types supported with `.measures`
Expand Down

0 comments on commit d950cd1

Please sign in to comment.