CodeItBetter Programming Another VB Programming Blog

How to find Square of a given number

Posted on January 4, 2009
1
2
3
4
'Math - How to find Square of a given number
Public Function dblSquare(ByVal sngSquareMe As Integer) As Double
    dblSquare = sngSquareMe * sngSquareMe    'Use *, not ^2, for speed
End Function

Related posts:

  1. How to find Square root of a given number
  2. Math & Physics Functions
  3. How to find the receprocal of a given number
  4. ArcTangent function that works in all quadrants
  5. How to calculate various properties of a quadratic equation by calculus and algebraic methods
  6. How to calculate arctangents in all four quadrants
  7. VB 6 equivalent functions to .Net’s Floor & Ceiling functions
  8. How to return Quotient and Remainder for given two numbers
  9. How to Round Numbers
  10. How to Convert the number n to any base between 2 and 36

Filed under: Math Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.