convertArea

fun convertArea(area: Double, from: Units = Units.Meters, to: Units = Units.Kilometers): Double

Converts an area to the requested unit. Valid units: Acres, Miles, Inches, Yards, Meters, Kilometers, Centimeters, Feet

Return

the converted area

Parameters

area

Area to be converted

from

Original units of the area

to

Units to convert the area to

Throws

if the given units are invalid, or if the area is negative