Variable Types - Numbers
RegisterLogin
Variable Types - Numbers
Post Description: Variable Types - Numbers
Tags: Variable, Types, -, Numbers
This Post Was Posted On May 23, 2008 By Webune #1443
Post Description: Variable Types - Numbers
Tags: Variable, Types, -, Numbers
This Post Was Posted On May 23, 2008 By Webune #1443
Variable Types - Numbers by Webune
as you can know, you define a number vairalble ny using the keyword var:
var examplevariable = number;
here are some exaples:
var paycheck = 1200;
var phonebill = 29.99;
var savings = 0;
var sparetime = -24.5;
if you need to use a particular long number, javascript has exponential notation. to denote the exponent use a letter e right after the base number and before the exponent. for examplke, to create a variable named bignumber and assign it a value of 4.52 x 10^5(452000) put the letter e in place of everything between the exponent to represent the phrase time 10 to the power of
example
var bignumber = 4.5e5
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
©2011 Webune Forums - Thu Dec 22, 2011 10:29 am
Powered by: Webune Forums V3
Powered by: Webune Forums V3