mileage_to_mile_chain¶
- pyrcs.converter.mileage_to_mile_chain(mileage)[source]¶
Converts <miles>.<yards> to <miles>.<chains>.
- Parameters:
mileage (str | numpy.nan | None) – The mileage data presented in the form of <miles>.<yards>.
- Returns:
The corresponding mileage presented in the form of <miles>.<chains>.
- Return type:
str
Examples:
>>> from pyrcs.converter import mileage_to_mile_chain >>> mile_chain_data = mileage_to_mile_chain(mileage='0.0396') >>> mile_chain_data '0.18' >>> mile_chain_data = mileage_to_mile_chain(mileage=1.0396) >>> mile_chain_data '1.18' >>> # None, nan or '' >>> miles_chains_dat = mileage_to_mile_chain(mileage=None) >>> miles_chains_dat ''