Home > How-To Library > Math
How to find Square of a given number
**************************************************************** * © 2007 CodeItBetter http://www.codeitbetter.com * * This notice MUST stay intact for legal use * **************************************************************** Public Function dblSquare(ByVal sngSquareMe As Integer) As Double dblSquare = sngSquareMe * sngSquareMe 'Use *, not ^2, for speed End Function
If you would like to submit your code here please us. Do not forget to mention your name. We are always thankful to each and everyone of you who submitted their code here.