Search | View Active Threads | View New Posts
Current Time: 10:32 AM

 

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2016
    Location
    Delhi
    Posts
    38

    Thumbs up Floating-Point Literals

    Floating-point numbers (sometimes called real numbers) have a fractional part. JavaScript uses a decimal point to distinguish between floating-point numbers and integers. Literally, a number such as 16.0 is a floating-point number, whereas 16 is an integer. Additionally, a floating-point number may
    include an exponent specification of the form eexp. Since there is no explicit declaration of data types in JavaScript, the floating-point format is implicitly determined by the literals that are assigned to the variables. Here are some floating-point numbers, with some explanations:

    Code:
    13.3
    0.056
    4.2e19 // equal to 4.2 * 1019
    3.1E12 // equal to 3.1 * 1012
    .1e12 // equal to 0.1 * 1012
    2E12 // equal to 2 * 10-12

  2. #2
    Join Date
    May 2019
    Location
    Bangalore
    Posts
    107
    The magnitude range of float is approximately 1.2e-38 to 3.4e38. ... The suffix f or F indicates a type of float, and the suffix l or L indicates a type of long double. If a suffix is not specified, the floating-point constant has a type double. A plus (+) or minus (-) symbol can precede a floating-point literal.


    Preschool in K Narayanpura | Preschool & Day Care in K Narayanpura | Top 10 Play Schools in K Narayanpura | Best Pre-Nursery in Thanisandra | Best Day Care Centers in Kothanur |Preschool in Nagavara|Top Play schools in K Narayanpura

Posting Permissions

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

Sponsors

Trellian Direct Search Network
Domain Escrow Services
Above.com Domain Registrar, Marketplace and Revenue Optimizer

Industry Events

11-14 August 2019
Affiliate Summit East
New York, NY

4-6 March 2019
LeadsCon
Las Vegas

15-18 September 2018
MERGE 2018
Orlando, FL

Poll

How do you invest in domains?
to see the Poll results!
DomainState.com
Domain Tools | Domain Directory | Registrar Stats | Domain Glossary | Industry Events | FAQ | Members | Terms | RSS | Link To Us | Advertise | Contact Us
Other Related Trellian Services:
Above.com Registrar  |  Above.com Marketplace  |  Above.com Domain Manager  |  Free Search Toolbar  |  Free Webpage Builder  |  Keyword Research
Direct Search Navigation  |  Search Engine Submission and SEO Tools
Copyright © 2002 DomainState.com a Trellian Company 2014 Bronze Sponsor - Internet Commerce Association