Convert unit based on unit system

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 470
100 Answers 250 Likes 100 Comments Second Anniversary
✭✭✭✭
edited June 2023 in Structures

Convert unit based on unit system

Tagged:

Answers

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 470
    100 Answers 250 Likes 100 Comments Second Anniversary
    ✭✭✭✭
    Answer ✓

    ConvertToUnitSystem(self: Quantity, unitSystem: str, quantityName: str)

    Example:

    my_quantity.ConvertToUnitSystem("SI", "Length")
    

    The following unit-system names can be used: “SI”, “CGS”, “British Technical”, “US Engineering”