pinafore/routes/_utils/coordsToPercent.js

2 lines
62 B
JavaScript

export const coordsToPercent = coord => (1 + coord) / 2 * 100