MToN Function
|
|
Returns a Numeric value from a Currency expression.
Namespace:
XSharp.VFP
Assembly:
XSharp.VFP (in XSharp.VFP.dll) Version: 2.24 GA
Syntax FUNCTION MToN(
mExpression AS CURRENCY
) AS FLOAT
public static Float MToN(
Currency mExpression
)
Request Example
View SourceParameters
- mExpression
- Type: Currency
Specifies a Currency expression whose value MToN( ) returns. mExpression must evaluate to a valid Currency value or X# generates an error.
Currency values are created by placing a dollar sign ($) prefix immediately before a Numeric value.
Return Value
Type:
Float
Numeric type. MToN( ) returns a value of Numeric type with four decimal places.
Examples1STORE $24.95 TO gyMoney
2CLEAR
3? "gyMoney is type: "
4?? Type('gyMoney')
5gyMoney = MToN(gyMoney)
6? "gyMoney is now type: "
7?? Type('gyMoney')
See Also