Shop OBEX P1 Docs P2 Docs Learn Events
Math question — Parallax Forums

Math question

Don CanavanDon Canavan Posts: 10
edited 2007-05-24 15:42 in BASIC Stamp
I know the the bs2 can do addition, subtration,........ Can it do sin, cos, tan, Square roots, etc as well?

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-05-24 15:39
    Hello,

    In the Help File (or BASIC Stamp Manual) please check out the following PBASIC Operators. SIN, COS, SQR and ATN. I hope this helps. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Mike GreenMike Green Posts: 23,101
    edited 2007-05-24 15:42
    It can, with some restrictions. Particularly, all arithmetic is done with 16-bit integers. Have a look in the PBasic manual (www.parallax.com/dl/docs/prod/stamps/web-BSM-v2.2.pdf) under the built-in functions (operators) and go through the "math" section of this website: www.emesystems.com.
Sign In or Register to comment.