O'Reilly logo

DarkBASIC Pro Game Programming, Second Edition by Joshua R. Smith, Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Number Crunching: Math Operators and Commands

This chapter is about number crunching, which is another way of referring to mathematical and relational programming. These are very important topics that you will need to know about to write useful programs. While the basic math operations of addition, subtraction, multiplication, and division are supported in all programming languages, DarkBASIC also has support for exponents and trigonometry. DarkBASIC makes it easy to use math functions because they are used just like any other command. You’ll learn about random numbers, reading the date and time, and using relational operators (greater than, equals, less than, and so on). Along the way, I’ll show you how to extend these commands by ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required