(value: number)
| 167 | } |
| 168 | |
| 169 | function clamp01(value: number): number { |
| 170 | if (value < 0) return 0 |
| 171 | if (value > 1) return 1 |
| 172 | return value |
| 173 | } |
| 174 | |
| 175 | function normalizeTenPoint(value: number): number { |
| 176 | return clamp01((value - 1) / 9) |
no outgoing calls
no test coverage detected