Skip to main content

gTomg (Function)

This converts the input given in grams into milligrams.

Syntax

<DOUBLE> unitconversion:gTomg(<INT|LONG|FLOAT|DOUBLE> p1)

Query Parameters

NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
p1The value that needs to be converted from grams into milligrams.INT LONG FLOAT DOUBLENoYes

Example 1

unitconversion:gTomg(1)

The gram value 1 is converted into milligrams as 1000.0.