Home > Common Problem > body text

What does sqr mean in vb?

Release: 2020-03-10 10:41:26
Original
20387 people have browsed it

What does sqr mean in vb?

Visual Basic (VB for short) is a general object-based programming language developed by Microsoft. It is structured, modular, object-oriented, and includes assistance in development A visual programming language for environmental event-driven mechanisms.

In VB, sqr is the square root.

The Sqr function returns the square root of a number.

1. Syntax

Sqr(number)
Copy after login

2. Note: The number parameter cannot be a negative value.

The following example uses the Sqr function to calculate the square root of a value:

Dim MySqr
MySqr = Sqr(4)     ' 返回 2。
MySqr = Sqr(23)    ' 返回4.79583152331272。
MySqr = Sqr(0)     ' 返回0。
MySqr = Sqr(-4)    ' 产生实时错误。
Copy after login

For more VB tutorials, please visit PHP Chinese website.

The above is the detailed content of What does sqr mean in vb?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
vb
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!