Login
Try VertexFX
  • Home
  • Knowledgebase
  • Blog
  • Home
  • Knowledgebase
  • Blog

Math Functions

home/Knowledge Base/Technical Support/API/Client API's/VTL/VTL Client Scripts/Math Functions/MathRound

MathRound

5 views 0 Updated on December 16, 2021 hybrid-solutions

Syntax

Public Function MathRound(Number As Double, Optional digitNumber As Long) As Variant

Description

This function used to return the number rounded to the nearest specified digit.

Parameters

Key Description
Number The specified to be rounded,value of type Double.
digitNumber Number of round digits, value of type Long.

Return value

Returns a rounded value as double

Note:

If this digitNumber Parameter is omitted, then the round function will return an integer value.

Sample

Public Sub main()AlertMessage MathRound(10.12345,2) 'The Alert Message will reurn 10.12  End Sub

See Also

  • MathSin
  • MathSgn
  • MathSqr


Back to VTL Client Script Index

Was this helpful?

Yes  No
Leave A Comment Cancel reply

  MathRnd

MathSin  

About
VertexFX Trader has a closed-loop trading structure with Backoffice dealing desk, Client Terminals, Dedicated Hosting, White Labelling and Bridging Capabilities. Through VertexFX Risk Management Bridge...
Categories
  • Release Notes
  • Technical Support
  • VertexFX Pro Setup
  • Mobile Trader
  • Lite VertexFX Mobile Trader
Community
  • Blog
  • Media Center
Need Support?
If you need any further help, don't hesitate to send a support request to our support team.
Contact Support
  • Privacy Policy
  • Brokers Terms
  • Traders EULA
  • ISV Terms
  • Plugins EULA
  • Copyright 2023 hybridsolutions.com. All Rights Reserved.