Navigation: Scripting Reference Manual > Functions & Subroutines > StrToDbl

 

StrToDbl

 

Contact Us: fredsupport@photonengr.com

 

Description

Converts a string into a double precision number.

 

Syntax

dblValue = StrToDbl ( someString )

 

Parameters

dblValue (Double)

The double precision number derived from the string.

 

someString As String

The string to convert to a double precision number.

 

Remarks

This function converts a string into a double precision number. If the conversion cannot be performed the function returns 0.

 

Examples

dblValue = StrToDbl ( "10" )

dblValue gets the value 10.

 

dblValue = StrToDbl ( "6.0e2" )

dblValue gets the value 600.

 

dblValue = StrToDbl ( "1600_pennsylvania_ave" )

dblValue gets the value 1600.

 

See Also

Acos

Asin

Power

Log10

Examples

Linear Transformations

 

 

 

 

 

Copyright © Photon Engineering, LLC