Q. How are floating constants represented in Python? Give examples to support your answer.
Answer =
Floating constant represented by positive or negative sign preceding.
But real constant with no sign is assumed to be positive.
Example = 2.0,365.23,0.002,3.
Goood,,
ReplyDeleteThanks for answer
Welcome : )
Deletethanks.....
ReplyDeleteWelcome : )
DeleteIsn't that the representation of int type data
ReplyDeleteno, It's correct. When we use decimal in numbers then it become float data type but without decimal like only 2, 365 are integer.
Delete: )
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )