advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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.