advr.hlp (Topic list)
Ctype Functions (CCUR, CINT, CLNG, CSNG, CDBL) Details
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 Ctype(numeric-expression)
 
 Usage Notes
   ■ The valid range for CINT and CLNG numeric expressions is:
 
         Function      Range
         ════════      ═════════════════════════════════════════════════════
         CINT          -32,768 to 32,767, inclusive
         CLNG          -2,147,483,648 to 2,147,483,647, inclusive
         CSNG          <= 88.02969
         CDBL          <= 709.782712893
 
   ■ If numeric-expression is outside the valid range, Visual Basic
     generates the run-time error message, "Overflow."
 
   ■ The CSNG function has the same effect as assigning the numeric
     expression to a single-precision variable. Likewise, the CDBL function
     has the same effect as assigning numeric-expression to a double-
     precision variable.
 
   ■ The results of CDBL are no more accurate than the original expression.
     The added digits of precision are not significant unless the
     expression is calculated with double-precision accuracy.
 
   ■ CSNG rounds the value, if necessary, before converting it.