How to declare a variable with FLOAT (2 DECIMAL PLACES) in table creation in oracle?

How to declare a variable with FLOAT (2 DECIMAL PLACES) in table creation in oracle?

Questions by shivigupta   answers by shivigupta

Showing Answers 1 - 3 of 3 Answers

Abhirup Roy

  • Oct 27th, 2015
 

In PL/SQL, unlike other programming language like C, we do not have a FLOAT data type. Instead we have NUMBER(precision,scale) data type, which can be used for both INTEGER and FLOATING NUMBERS. However we do separately have integer and pls_integer for specific integer usage. But for normal variable which is expected to retain a float value can be defined by NUMBER data type.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions