If Value is being passed in as a number (50% = Value of 50 after the floor) then you only need to divide by 100 to turn that into a decimal and multiply by the viewport size. This result will change based on the size of the viewport being used (fullscreened at 1920x1080 will give a different result than a 1024x768 window).