Which among the following are the correct representation of “float(4,2)”?
A. 24.33
B. 124.4
C. 12.123
D. Both a. and b.
Answer:A
Which among the following are the correct representation of “float(4,2)”?
A. 24.33 B. 124.4 C. 12.123 D. Both a. and b.
Explanation: Float(4,2) allowed at most 2 digit at right of the decimal and left of the decimal..