to convert a number from the range A to B, into the range X to Y, you would
subtract A,
divide by (B - A),
multiply by (Y - X),
then Add X.
in summary:
( ( i - A ) / ( B - A ) ) * (Y - X) + X
there is also a node called MapRangeClamped, that does this automatically,
but if you just need to transform a number between 0 and 1, to a number between 0 and 127, and you want to do it most efficiently, you can just multiply the number by 127.