Formatting double values ignoring leading zeros in fraction part – Ios swift
I want to format the fraction part of double values with 5 digits by ignoring the leading zeros, for example: 0.123456 -> 0.12345 0.00001234567 -> 0.000012345 0.0001234567 -> 0.00012345 how can I do that? I tried to set the maximum…