Skip to content

Commit

Permalink
doc: Update README.md to reflect #138
Browse files Browse the repository at this point in the history
#138 forces integer scores for slash grades.  The tests were updated there, but not the examples in the readme.  Update them now.
  • Loading branch information
musoke authored Aug 1, 2023
1 parent 0ee199a commit f1f7fe4
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 @@ -60,10 +60,10 @@ import { French, YosemiteDecimal } from '@openbeta/sandbag'
const score = French.getScore('8a') // Output [ 84, 85 ]

// Support slash grade
const slashGradeScore=French.getScore('7c+/8a') // Output [ 82.5, 84.5 ]
const slashGradeScore=French.getScore('7c+/8a') // Output [ 83, 84 ]

// Accept +/- modifier
const plusGrade= YosemiteDecimal.getScore('5.12+') // Output [ 78.5, 80.5 ]
const plusGrade= YosemiteDecimal.getScore('5.12+') // Output [ 79, 80 ]
```

- Convert Scores to Grades
Expand Down

0 comments on commit f1f7fe4

Please sign in to comment.