Print Design Templates Take a look at these creative Graphic Design templates for brochures, flyers, newsletters, stationery, postcards, ads, menus and posters for a variety of businesses.
Invoicing 4 Freelancers A complete, secure, online billing application that maintains hourly service billing, flat fee billing and recurring charges. Integration with Authorize.Net and other leading payment gateways provides hands-free recurring billing with a sophisticated CRM system.
Free Design Magazines Browse through our extensive list of free Graphic Design, Web Design, Business, Computer, and Computer Graphics magazines, white papers, downloads and podcasts to find the titles that best match your skills and interests; topics include management, marketing, operations, sales, and technology. Simply complete the application form and submit it. All are absolutely free to freelance professionals who qualify.
Suggested Links Photoshop Tutorials
Logo Designer's Logos
Web Design Tools List
Layouts & Templates Directory
Web Design & Graphic Design Blog
Photoshop, Flash, 3D Studio Max Tutorials
Web Designers & Developers
Crafts for Kids
Photoshop Tutorial Man
Tutorial Guide -- Free Webmaster Tutorials
Design Contests
How to Draw
Work From Home Job Search
OTHER SITES WE OWN
AllFreelance
Graphic Design Resources Directory
Graphics Tutorials Directory
Social Networking Articles
Design Sites Up
All Freelance Work & Portfolios
Graphic Design Community
Education & Learning Directory
![]() |
home > Web Design Tutorials > Programming Tutorials > Javascripting Articles > Javascript Mathematics & Arithmatics & Numbers Coding Tutorials
JavaScript Math Object
In this tutorial you learn JavaScript Math Object…
The Math object
Programmers are often typecast as good mathematicians. While this is in fact the case with me, I doubt it applies to everyone (small joke). As the scene erupts in a sea of fury, lets just settle on the fact that every mathematician needs a calculator some
JavaScript Math Object
The Math object allows you to perform common mathematical tasks.
round() Example
How to use round().
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
||
random() Example
How to use random() to return a random number between 0 and 1.
max() Example
How to use max() to return the number with the highest value of two specified numbers.
min() Example
How to use min() to return the number with the lowest value of two specified numbers.
The Math Object
The Math object of JavaScript allows you to perform certain calculations by using method functions of the Math object. Also, it provides a few constants such as pi. The easiest way to get a value is to define a variable and set its value to a property or
Getting Random
The random() method function of the Math object allows you to get random numbers for various uses in your scripts. You can make a random quote generator or have another type of random script. The only trick is knowing how to get a random number within the
Math Variables
This page will not only show you how to use numeric values to perform computations with JavaScript, but it will also test your basic math skills.
Creating Random Numbers
This example introduces you to random numbers. JavaScript uses the date and time when it generates a random number.
Fun with Random Numbers
We can use JavaScript to generate random numbers, that is, numbers that are different each time the script is run. This allows us to do all sorts of fun stuff, such as…
Random Numbers
Use this script to pick 16 random numbers. Lottery, for fun, whatever.
Roman Numeral Converter
Having trouble converting to Roman numerals? This script should do the trick!
Generating Random Numbers in JavaScript
JavaScript provides a vast array of mathematical functions that are available through the in-built Math object. The randomizer is also a mathematical function. In its simplest form the random function returns a value between 0 and 1.
Random Text Display Using JavaScript
Our aim is to randomly display a text string from a set. It involves the following steps…
Random Image Display Using JavaScript
The steps involved in randomly displaying an image from a set are very similar to those used for displaying random text strings.
The match() method
The match() method takes a regular expression as a parameter and returns an array of all the matching strings found in the string given.
The Math-object
If you need to do mathematical calculations you will find some methods in the Math-object which might help you further…
The Math Object
The Math object is really a function library organized as an object. It is used to store methods that perform various mathematical functions. Almost all Math methods are class methods and return a value of some sort.
Math Object
The Math object allows you to perform common math related tasks…
Random Text Display
Display random text on your web site using this very simple script…
Random Image Display
Display random images on your web site using this very simple script…
Random Banner Display
Display random banners and links on your web site using this very simple script…
Mathematical Functions
Javascript provides access to a lot of common mathematical functions as well as some of the more common irrational numbers (e, pi, square root of 2 etc.) using the Math class. This class works a bit differently from…
OBJECT: Math
The Math object is a top-level, built-in JavaScript object which can be accessed without using a constructor or calling a method.
JavaScript Math Object
The Math object can be used to perform mathematical tasks…
JavaScript Math Object Functions
The Math object contains 16 functions. In this section you will see these 16 functions in some small examples. Please take a look at the math object, if you need more information about that. All functions are used with the Math object…
RECENT ARTICLES from Graphic Design BloG
Business Cards: Ideas and Inspiration, Part II
Today we continue looking at business cards that stand out, and here’s hoping you get some inspiration and ideas! After all, you only get one first impression, so your business card should be something that showcases the best of your design abilities. On Wednesday we looked at the use of interesting shapes, 3D business cards, [...]
![]() |
![]() |
|
![]() |
![]() |
|
Making the Move from Freelance Work to Full-Time Employment
If you are like me, after graduating from a graphic design school, your goal was to make it as a freelance web designer. The lure of flexible hours, working from home and the freedom to manage your own time was too much to resist. At some point, I decided it may be ?easier? to work [...]
Tips for Asking for a Raise
At some point in our careers, there is a time when we open our paychecks and breathe a sigh of disappointment. After years of studying at a graphic design school and countless hours spent devoted to learning from colleagues and researching new design techniques, the numbers on our pay stub just don?t seem to measure [...]
Stock vs. Original Digital Photography
A picture is worth a thousand words. Graphic design schools teach us that photos on web sites have the potential to capture our attention, motivate us to read more or even propel us to navigate to another web site entirely. They inflict emotion and can establish a connection between site visitors and the goods or [...]
3 Tips to Manage Content Updates
While walking through the pharmacy I passed the aisle filled with red heart-shaped boxes filled with chocolates and remembered Valentine?s Day is quickly approaching. Even though I was surrounded by so many representations of love, it reminded me of one thing that I actually despise ? web content updates! Graphic design schools teach many, many [...]
Should You Drop the Drop-Down Menus?
I was recently on a home improvement web site searching for ideas for renovating my bathroom. After a few minutes on the site I realized that I was not going to find what I was looking for ? it certainly could have been there, but I just could not find it. Menu after menu had me [...]
Sharpen Your Skills and Gain an Edge at 2011 Web Design Conferences
Graphic design schools prepare us well for our immediate future, but it takes effort to stay on top of the ever-changing field of web design. Following are a few of the upcoming conferences and trade shows meant to help you stay a step ahead of the competition.
Interaction Eleven In its fourth year, Interaction Eleven is [...]
All Web Design Resources is a Directory & Blog Full of Tools for Web Site Designers
All Web Design Resources Portal is a Web Site Design education directory with resources & articles for Graphic Designers, Web Developers, & Web Designers including a Web Design forum, blog, graphics software tips, web development resources, web programming tools, web design jobs, advice for new web designers about web design schools and education as
well as tips for freelance web design business owners, and much more.