Computer Science, asked by mariposa12, 1 year ago

Write the difference between parseInt ( ) and parseFloat ( ).​

Attachments:

Answers

Answered by pritamray
1

Community parseInt is for converting a non integer number to an int and parseFloat is for converting a non float (with out a decimal) to a float (with a decimal). If your were to get input from a user and it comes in as a string you can use the parse method to convert it to a number that you can perform calculations on.

:-)

Answered by Anonymous
0

parseInt() stores integer datatype and parseFloat() stores fractional datatypes......

#sumedhian ❤❤

Similar questions