I am trying to split the width of the screen into a variable in order to draw evenly distributed parts of the user interface in webview.
However, when the variable is 3, 100/3 the result is 33.3333333333333336 in JavaScript, and the third part cannot be drawn as intended, because the sum of the coefficients is more than 100%, I am gusss.
Is there any good workaround for this problem?
source share