Free Salesforce Developers Tutorials >

Chapter 3 - Apex Datatypes and Operators >

Float Datatype in APEX

Float Datatype in APEX

What You’ll Learn

Type of Floating type datatypeType of Floating type datatype

Syntax of using Decimal and Double Datatype in ApexSyntax of using Decimal and Double Datatype in Apex (Learn From Video)

S2 Labs

A floating point variable can represent a very wide range but with a fixed number of digits in accuracy.

Types Of Float Datatype

1. Double (8 bytes/64 bits)


Double db = 99.5;

2. Decimal

A number that includes a decimal part. A Decimal is an arbitrary precision number.


Decimal deci = 99.5;


Currency fields are automatically defined as type decimal.


Download Study Material

Get access to exclusive study material for Salesforce Certification and ace your exams!

Download Now

Our Salesforce Certification Courses

Hey there! Glad you made it through our Salesforce Developer Training for beginners . But wait! We've got some high-in-demand Salesforce courses for you to take your Salesforce skills to the next level, making you a desired professional in the Salesforce job market.

Post a Comment

Your email address will not be published. Required fields are marked *