Skip to main content

gTokg (Function)

This converts the input given in grams into kilograms.

Syntax

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

Query Parameters

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

Example 1

unitconversion:gTokg(1000)

The grams value 1000 is converted into kilogram as 1.0.