Unit conversion from architectural system not working as expected

Unit conversion from architectural system not working as expected

SaddamShaikh77
Advocate Advocate
326 Views
0 Replies
Message 1 of 1

Unit conversion from architectural system not working as expected

SaddamShaikh77
Advocate
Advocate

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

 

0 Likes
327 Views
0 Replies
Replies (0)