So I have some code for scaling graphics to the size of a users screen by dividing the size of an \'Ideal\' screen by the size of the users screen. Hers is a code snippet of wha
Cast it to Double.
scaleFactorWidth = (Double)2880 / ui.getWidth(); scaleFactorHeight = (Double)1800 / ui.getHeight();