SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2006
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy math calculation

    i am dividing 3 by a milion and i get 3e-6 can i force to show it like this:0.000003 an not 3e-6?

  2. #2
    SitePoint Enthusiast
    Join Date
    Aug 2009
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile

    Quote Originally Posted by gertila View Post
    i am dividing 3 by a milion and i get 3e-6 can i force to show it like this:0.000003 an not 3e-6?
    var tinyNumber:Number = (3/1000000000000);

    trace(tinyNumber.toFixed(20)); // 20 is the max.



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •