Also, Math.round(f) returns an integer. You can't use it to get your desired format x.xx . You could use String.format ...
確定! 回上一頁