Skip to main content
guest
Join | Help | Sign In
Liberty BASIC Community Wiki Home
guest| Join | Help | Sign In
Liberty BASIC Community Wiki
  • Wiki Home
  • Recent Changes
  • Pages and Files
  • Members
  • Home
    • Liberty BASIC FAQ
    • Contests
    • Tutorials
    • Science
    • Shared Code
    • Tips
    • DLLs
    • PublicDomainSprites
    • Member Pages
    • Links
    • Sandbox

Math and Numbers

Edit 0 1 …
  • 0 Tags
    • No tags
  • Notify
  • RSS
  • Backlinks
  • Source
  • Print
  • Export (PDF)
Older Version Newer Version

Alyce Alyce Jan 10, 2006

In the Liberty BASIC Helpfile, look in the category "Language Syntax and Usage" and find the sub-category called "Mathematics." The topics covered include:

  • Mathematics
  • Numeric Variables
  • Mathematical Operations
  • Trigonometry
  • Numbers and Strings
  • Date and Time Functions

Mathematics tells you how to manipulate numbers and numeric expressions using arithmetic, including addition, subtraction, division, multiplication, absolute value and scientific notation. It also includes links to these individual math functions:

  • SIN
  • COS
  • TAN
  • ASN
  • ACS
  • ATN
  • ABS
  • EXP
  • LOG
  • HEXDEC
  • DECHEX$
  • INT
  • MAX
  • MIN
  • MOD
  • RND
  • SQR
  • VAL
  • STR$
  • USING

Numeric Variables discusses numeric variable use, negative numbers as variables, and global variables.

Mathematical Operations gives an overview of math operations, including ABS(), SQR(), EXP(), LOG(), INT(), MAX(), MIN(), MOD, RND() and RANDOMIZE
Trigonometry shows you which trig functions are supported in Liberty BASIC and how to use them. It also discusses the conversion between degrees and radians.
Numbers and Strings explains the ways numbers can be converted to string and vice versa, as well as formatting numbers with the USING() function.
Date and Time Functions lists the various functions that return the system time, the date, and it explains how to do math on dates.
Help · About · Pricing · Privacy · Terms · Support · Upgrade
Contributions to https://basic.wikispaces.com/ are licensed under a Creative Commons Attribution Share-Alike 2.5 License. Creative Commons Attribution Share-Alike 2.5 License
Portions not contributed by visitors are Copyright 2018 Tangient LLC
TES: The largest network of teachers in the world
Turn off "Getting Started"
  1. Home
  2. ...
Loading...