optimzations for dashbaord

This commit is contained in:
Michael Simard
2021-01-15 13:48:06 -06:00
parent b391da4dfb
commit ce46570099
4 changed files with 194 additions and 265 deletions

View File

@@ -0,0 +1,16 @@
//
// Double+Truncate.swift
// App
//
// Created by Michael Simard on 1/15/21.
//
import Foundation
extension Double
{
func truncate(places : Int)-> Double
{
return Double(floor(pow(10.0, Double(places)) * self)/pow(10.0, Double(places)))
}
}