Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Round to 2 decimals


'use Format function with Currency
Dim Round As Double , nValue As Double
Round = CDbl ( Format (nValue, "Currency" ))