Message 1 of 1
Unit conversion from architectural system not working as expected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello forum,
I am trying to convert architectural unit system as
double length = Converter.StringToDistance(Length, DistanceUnitFormat.Architectural);
When Length=14'0", it works and gives me an output as 168 inches
When Length=14'1" 1/16 or 3'1"11 it throws an exception as invalidinput.
Please suggest me how to deal with such cases . It is not accepting third value.
Thank you