1 2 3 4 5 6 7 8 9 10
import strutils, math proc degrees*(rad: float): float = return rad * 180.0 / PI proc radians*(deg: float): float = return deg * PI / 180.0 ## V not math, sue me proc ff*(f: float, precision = 2): string {.inline.} = return formatFloat(f, ffDecimal, precision)