I have a problem, I need to round a double using the third digit after decimal point. Example: 16373.89732 -> because the number is 7( the third digit) It needs to became 16373.90. if it was < 5 nothing will need to happen, it will remain 16373.89.
let tempEndwert = ((1000*endwert).rounded())/1000
- I trie the but it is not working - 49263792.69752127 - this is the number. I need to save it formatted (49263792.70) - when rounded.