is_metric


Description:

[ Version ( since = "2.10" ) ]
public bool is_metric ()

Checks if the given this is metric.

A simplistic test is used that looks at the unit's factor and checks if it is 2.54 multiplied by some common powers of 10. Currently it checks for mm, cm, dm, m.

See also: get_factor

Parameters:

this

The unit

Returns:

true if the this is metric.