mm2inch

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 5.0, Creation date: 2020-09-28, Last change: 2025-09-14

returns mm in inch



See Also: mm2inch , Charriere2mm , French2mm , Gauge2mm

Example Illustration

 missing image of mm2inch (mm)

Syntax

mm2inch(mm)

Input Parameter

mm: mm

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

Algorithm Steps

  1. The function takes a single input parameter, mm, which represents the length in millimeters.
  2. 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.
  3. 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