mirror of
https://github.com/exyte/Macaw.git
synced 2024-09-11 05:05:23 +03:00
MacOS tests fix
This commit is contained in:
parent
75678de4ec
commit
ee7fa2077b
@ -408,6 +408,7 @@ extension Double {
|
||||
let formatter = NumberFormatter()
|
||||
formatter.minimumIntegerDigits = 1
|
||||
formatter.maximumFractionDigits = 6
|
||||
formatter.decimalSeparator = "."
|
||||
return abs(self.remainder(dividingBy: 1)) > 0.00001 ? formatter.string(from: NSNumber(value: self))! : String(Int(self.rounded()))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user