Get Your Numbers Right



Gets the square root of a positive number, with up to 32,767 significant digits of precision. Same as Excel's built-in SQRT function, but with high precision.



num Required. The base number for which the square root will be found. Must be positive. Can be a non-integer.
format_thousands Optional. Determines whether thousands separators are included. Set to TRUE to include thousands separators. FALSE by default.
format_currency Optional. Determines whether currency symbol is included. Set to TRUE to include currency symbol. The currency symbol will be added either to the beginning or to the end of the result, whichever is appropriate for the locale. FALSE by default.
exponential_notation Optional. Determines whether result is formatted in exponential notation. Set to TRUE to format in exponential notation. FALSE by default.
maximum_significant_digits Optional. Determines the maximum number of significant digits to be returned. Default is 100, or the user's custom maximum set in the About box, or the maximum number allowed by the edition of xlPrecision, whichever is less.



Formula Description Result
=xlpSQRT(4) 2 4 2
=xlpSQRT(100) 2 100 10
=xlpSQRT(-4) 2 (-4) #NUM!
=xlpSQRT(5,,,,25) 2 5, limited to 25 significant digits 2.236067977499789696409173

See Also