• +91 9723535972
  • info@interviewmaterial.com

Dart Programming Interview Questions and Answers

Related Subjects

Question - What Is The Use Of Truncate Methods?

Answer -

Truncate method is used to return an integer after discarding any fractions digits.

Example:

void main() {   

   double n1 = 2.123;   

   var value = n1.truncate();   

   print("The truncated value of 2.123 = ");   

}   

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners