Skip to content
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

Merged

Conversation

alvaro347
Copy link
Contributor

@alvaro347 alvaro347 commented May 7, 2024

Description

  • Added the toDouble() method for dart

Issue Solved

Closes #4569

Type of Change

  • Adding a new entry

Checklist

  • All writings are my own.
  • My entry follows the Codecademy Docs style guide.
  • My changes generate no new warnings.
  • I have performed a self-review of my own writing and code.
  • I have checked my entry and corrected any misspellings.
  • I have made corresponding changes to the documentation if needed.
  • I have confirmed my changes are not being pushed from my forked main branch.
  • I have confirmed that I'm pushing from a new branch named after the changes I'm making.
  • I have linked any issues that are relevant to this PR in the Issues Solved section.

@CLAassistant
Copy link

CLAassistant commented May 7, 2024

CLA assistant check
All committers have signed the CLA.

@mamtawardhani mamtawardhani self-assigned this May 7, 2024
@mamtawardhani mamtawardhani added new entry New entry or entries status: under review Issue or PR is currently being reviewed dart Dart entries labels May 7, 2024
@mamtawardhani
Copy link
Collaborator

Hey @alvaro347! Please sign the CLA. Thanks!

@alvaro347
Copy link
Contributor Author

@mamtawardhani I just signed the CLA, thank you.

Copy link
Collaborator

@mamtawardhani mamtawardhani left a 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!

Comment on lines 1 to 15
---
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'
---
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
---
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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The above code returns the following output:
The above code produces the following output:

@alvaro347
Copy link
Contributor Author

Hello @mamtawardhani, thank you for the revision and the suggestions. I updated the file and commit the changes. Do you mind checking it out?

Copy link
Collaborator

@mamtawardhani mamtawardhani left a 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.

Copy link
Collaborator

@letsbuildanything letsbuildanything left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready to merge! 🚀

@letsbuildanything letsbuildanything added status: review 2️⃣ completed and removed status: under review Issue or PR is currently being reviewed labels May 20, 2024
@letsbuildanything letsbuildanything merged commit a526f01 into Codecademy:main May 20, 2024
6 checks passed
Copy link

👋 @alvaro347
You have contributed to Codecademy Docs, and we would like to know more about you and your experience.
Please take a minute to fill out this four question survey to help us better understand Docs contributions and how we can improve the experience for you and our learners.
Thank you for your help!

🎉 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.
If you're appearing as anonymous and want to be credited, see here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Term Entry] Dart Type Conversion .toDouble()
4 participants