-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Term Entry] Dart Type Conversion .toDouble() #4630
[Term Entry] Dart Type Conversion .toDouble() #4630
Conversation
Hey @alvaro347! Please sign the CLA. Thanks! |
@mamtawardhani I just signed the CLA, thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @alvaro347! Thank you for Contributing to Codecademy Docs! The entry was nicely written.
I've suggested some changes in the entry, could you please review and modify them at your earliest convenience? Feel free to discuss if you have any concerns.
Thank you!
--- | ||
Title: '.toDouble()' | ||
Description: 'Returns the double representation of the number's value.' | ||
Subjects: | ||
- 'Computer Science' | ||
- 'Developer Tools' | ||
Tags: | ||
- 'Dart' | ||
- 'Data Types' | ||
- 'Methods' | ||
- 'Numbers' | ||
CatalogContent: | ||
- 'learn-dart' | ||
- 'paths/computer-science' | ||
--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--- | |
Title: '.toDouble()' | |
Description: 'Returns the double representation of the number's value.' | |
Subjects: | |
- 'Computer Science' | |
- 'Developer Tools' | |
Tags: | |
- 'Dart' | |
- 'Data Types' | |
- 'Methods' | |
- 'Numbers' | |
CatalogContent: | |
- 'learn-dart' | |
- 'paths/computer-science' | |
--- | |
--- | |
Title: '.toDouble()' | |
Description: 'Returns the double representation of the number's value' | |
Subjects: | |
- 'Code Foundations' | |
- 'Computer Science' | |
- 'Mobile Development' | |
Tags: | |
- 'Dart' | |
- 'Data Types' | |
- 'Methods' | |
- 'Numbers' | |
CatalogContent: | |
- 'learn-dart' | |
- 'paths/computer-science' | |
--- |
- 'paths/computer-science' | ||
--- | ||
|
||
In Dart, **`.toDouble()`** is a method used to convert numeric [data types](https://www.codecademy.com/resources/docs/dart/data-types), such as `int`, into its double-precision floating-point representation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Dart, **`.toDouble()`** is a method used to convert numeric [data types](https://www.codecademy.com/resources/docs/dart/data-types), such as `int`, into its double-precision floating-point representation. | |
In Dart, **`.toDouble()`** is a method used to convert numeric [data types](https://www.codecademy.com/resources/docs/dart/data-types), such as `int`, to their double-precision floating-point representation. |
} | ||
``` | ||
|
||
The above code returns the following output: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The above code returns the following output: | |
The above code produces the following output: |
Hello @mamtawardhani, thank you for the revision and the suggestions. I updated the file and commit the changes. Do you mind checking it out? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for making the changes @alvaro347!
Looks good for the second review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ready to merge! 🚀
👋 @alvaro347 🎉 Your contribution(s) can be seen here: https://www.codecademy.com/resources/docs/dart/type-conversion/toDouble Please note it may take a little while for changes to become visible. |
Description
Issue Solved
Closes #4569
Type of Change
Checklist
main
branch.Issues Solved
section.