- VBScript Tutorial
- VBScript - Home
- VBScript - Overview
- VBScript - Syntax
- VBScript - Enabling
- VBScript - Placement
- VBScript - Variables
- VBScript - Constants
- VBScript - Operators
- VBScript - Decisions
- VBScript - Loops
- VBScript - Events
- VBScript - Cookies
- VBScript - Numbers
- VBScript - Strings
- VBScript - Arrays
- VBScript - Date

- VBScript Advanced
- VBScript - Procedures
- VBScript - Dialog Boxes
- VBScript - Object Oriented
- VBScript - Reg Expressions
- VBScript - Error Handling
- VBScript - Misc Statements

- VBScript Useful Resources
- VBScript - Questions and Answers
- VBScript - Quick Guide
- VBScript - Useful Resources
- VBScript - Discussion

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

# VBScript - Numbers

Number functions help the developers to handle numbers in an efficient way and also helps them to convert their subtypes. It also helps them to make use of the inbuilt mathematical functions associated with VBScript.

### Number Conversion Functions

Number functions help us to convert a given number from one data subtype to another data subtype.

Sr.No | Function & Description |
---|---|

1 |
A Function, which converts a given number of any variant subtype to double |

2 |
A Function, which converts a given number of any variant subtype to Integer |

3 |
A Function, which converts a given number of any variant subtype to Long |

4 |
A Function, which converts a given number of any variant subtype to Single |

5 |
A Function, which converts a given number of any variant subtype to Hexadecimal |

### Number Formatting Functions

The Number formatting functions help the developers to express the given number in a format that they wish to.

Sr.No | Function & Description |
---|---|

1 |
A Function, which would return an expression formatted as a number |

2 |
A Function, which would return an expression formatted as a percentage |

### Mathematical Functions

Mathematical Functions help us to evaluate the mathematical and trigonometrical functions of a given input number.

Sr.No | Function & Description |
---|---|

1 |
A Function, which returns the integer part of the given number |

2 |
A Function, which returns the integer part of the given number |

3 |
A Function, which returns the natural logarithm of the given number. Negative numbers disallowed |

4 |
A Function, which returns the Octal value of the given number. |

5 |
A Function, which returns the Hexadecimal value of the given number |

6 |
A Function, which returns a random number between 0 and 1 |

7 |
A Function, which returns a number corresponding to the sign of the specified number |

8 |
A Function, which returns the square root of the given number. Negative numbers disallowed |

9 |
A Function, which returns the absolute value of the given number |

10 |
A Function, which returns the value of e raised to the specified number |

11 |
A Function, which returns sine value of the given number |

12 |
A Function, which returns cosine value of the given number |

13 |
A Function, which returns tan value of the given number |