| 1 |
// |
|
| 2 |
// Float.swift |
|
| 3 |
// USB Meter |
|
| 4 |
// |
|
| 5 |
// Created by Bogdan Timofte on 08/03/2020. |
|
| 6 |
// Copyright © 2020 Bogdan Timofte. All rights reserved. |
|
| 7 |
// |
|
| 8 | ||
| 9 |
import Foundation |
|
| 10 | ||
| 11 |
extension Float {
|
|
| 12 |
var uInt8Value: UInt8 {
|
|
| 13 |
return UInt8(self) |
|
| 14 |
} |
|
| 15 | ||
| 16 |
var doubleValue: Double {
|
|
| 17 |
return Double(self) |
|
| 18 |
} |
|
| 19 |
} |