Syntax
mm2inch(mm)
Input Parameter
Examples
mm2inch(19)
Copyright 2020-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth
Algorithm (Workflow)
This function, mm2inch
, is designed to convert a measurement from millimeters to inches. It is part of the SolidGeometry library, specifically introduced in version 5.0, and is categorized under auxiliary procedures.
Input Parameters
- mm: The measurement in millimeters that you want to convert to inches.
Algorithm Steps
- The function takes a single input parameter,
mm
, which represents the length in millimeters.
- It performs a conversion by dividing the millimeter value by 25.4, as there are 25.4 millimeters in an inch. This calculation is stored in the variable
inch
.
- The function then calls
dbprintf
to print the conversion result in a formatted string, showing both the original millimeter value and the converted inch value. The format used is one decimal place for both values.
Example Usage
To convert 19 millimeters to inches, you would call the function as follows:
mm2inch(19)
This would output: 19.0mm = 0.7inch
Additional Information
The function is part of a suite of conversion tools, which also includes Charriere2mm
, French2mm
, and Gauge2mm
, each designed to convert different units to millimeters.
Algorithm explaination created using ChatGPT on 2025-08-18 21:51. (Please note: No guarantee for the correctness of this explanation)
Last html export of this page out of FM database by TL: 2025-09-21