JSFiddle - React, Tailwind, and code Playground

JavaScript

const test = Math.abs(((120 - 0) / 0) * 100).toFixed(1) + '%'
const test2 = Math.abs(((50 - 25) / 25) * 100).toFixed(1) + '%'
const test3 = Math.abs(((10000 - 0) / 0) * 100).toFixed(1) + '%'

console.log('test:', test)
console.log('test2:', test2)
console.log('test3', test3)