How do you remove trailing zeros in darts?

truncateToDouble() method in my answer auto rounds decimal place based values to 1 when they are less than 1 (i.e. 0.95) which is an unwanted side effect. @alexwan02 use RegExp(r”([.]* 0+)(?!. *\d)”) to remove all trailing zeroes after the decimal point .

Sizin İçin Seçtik  Zorlu Holding sahibi kim?

Leave a Reply

Your email address will not be published. Required fields are marked *