Multiply javascript generated number by another number

How can i get the current number in a span and multiply it by 0.95? The number in the span is gotten from a range slider that starts from 0.003 to 0.075 below is the code i have

const uaaz = +document.querySelector("#maaz").textContent
const result = document.querySelector(".result")

function ug(ue) {
  up = ue * 0.95
  result.textContent = up
}
ug(uaaz)
<span id="maaz" class="aaz">number generated from range slider shows here</span>
<span class="result"></span>

The problem i have is that 0.003 is always the number being multiplied by 0.95 even if the number from the slider is higher. How can i make sure the current value in the span is used?