Gemstone Common Library
Show/Hide TOC

# MassFromTons Method

Creates a new Mass value from the specified value in short tons.

## Definition

Namespace: Gemstone.Units
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.162 -- Release Build+f11797ef017301be20d4b9376f78ac29ba38c21a
C#
View Source Request Example

    public static Mass FromTons(
    	double value
    )

VB
View Source Request Example

    Public Shared Function FromTons (
    	value As Double
    ) As Mass

C++
View Source Request Example

    public:
    static Mass FromTons(
    	double value
    )

JavaScript
View Source Request Example

    Gemstone.Units.Mass.FromTons = function(value);

#### Parameters

value Double
  New Mass value in short tons.

#### Return Value

Mass
New Mass object from the specified value in short tons.

## See Also

#### Reference

Mass Structure
Gemstone.Units Namespace