Command: cvd

NEST HelpDesk Command Index NEST Quick Reference

Name:
 cvd - Convert integer/string to double

Synopsis:
 integer cvd -> double
             string cvd -> double

Description:
 If cvd is executed with an integer, the resulting
   double contains zeros after decimal point, if it is executed with a
   string that contains letters 0.0 is returned. If the string
   contains a double or integer, the corresponding double is returned.

   Alternatives: Function double (undocumented) -> behaviour and
   synopsis are the same.

Examples:
   3 cvd -> 3.0
   (23) cvd -> 23.0
   (23.2323) cvd -> 23.2323
   (hello) cvd -> 0.0

Diagnostics:
   no errors are issued.

Author:
 docu by Sirko Straube

SeeAlso:cst cv1d cv2d cva_d cva_t cvd_s cvi cvlit cvn cvs cvt_a
Source:
 /home/abuild/rpmbuild/BUILD/nest-2.4.1/lib/sli/typeinit.sli

NEST HelpDesk Command Index NEST Quick Reference

© 2000-2010 The NEST Initiative