HoloGuides : Know Everything !

AZ

photos


 

find 
enhanced Search Agent
find 
in 220 000+ people
(architects, actors, painters, runners, ...)

recently updated or created

Excel 2007
Paris
php
Canon EOS
XML
2000 museums
Adobe Photoshop
6000 rivers
Venezuela
Sydney, Australia
Kenya
8000 painters
butterflies
1900 islands
Nikon D300
Pablo Picasso
Herb paris
Science Fiction
you are here : HoloGuides >>   Programming >>  JavaScript >>   functions  
 
  functions A-Z
 

 

  isNaN()

isNaN returns true if the argument is Not a Number.

example

alert(isNaN("16-5a"));

// will show true.

  parseInt()

parseInt is converting a text to an integer number.

example

var x = parseInt("25.8");

// used to do some basic addition with two numbers from form-fields.
// Form fields are text and thus a statement like a + b returns the concatenation : ab

  parseFloat()

parseFloat is converting a text to an floating point number.

example

var x = parseFloat("25.8");

// x contains now 25.8

// used to do some basic addition with two numbers from form-fields.
// Form fields are text and thus a statement like a + b returns the concatenation : ab