Decimalbasic Study Notes (1), decimalbasic

Source: Internet
Author: User

Decimalbasic Study Notes (1), decimalbasic

Define Variables

LET

Input variable value

INPUT

INPUT a, B

The absolute value of the calculation result is smaller than 0 before 1.

PRINT statement

The value is directly written, and the string uses ""

Use semicolons (;) and commas (,) to separate and display two projects

The PRINT statement is automatically followed by a line feed;

Insert independent PRINT automatic line feed

FOR... NEXT Loop

FOR n = 0 TO n

...

NEXT n

STEP

Decrease rule

DEF Function Definition

Internal functions

SQR (X) Square Root

ABS (X) absolute value

Trigonometric function

INT (X) indicates the maximum integer not greater than X (discarded in the negative direction)

PI is a constant, RND random number (0 ~ Between 1)

INT (RND * k + 1) can get 0 ~ Random integer between k

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.