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

fix: 修正「数值类型」总结内容 #111

Merged
merged 1 commit into from Jan 3, 2022
Merged

fix: 修正「数值类型」总结内容 #111

merged 1 commit into from Jan 3, 2022

Conversation

l1ch40
Copy link
Contributor

@l1ch40 l1ch40 commented Jan 1, 2022

Rust的数值上可以使用方法. 例如你可以用以下方法来将24.5取整: 13.14_f32.round(), 在这里我们使用了类型后缀,因为编译器需要知道13.14的具体类型

不是将 24.5 取整,应是将 13.14 取整。

Copy link
Owner

@sunface sunface left a comment

Choose a reason for hiding this comment

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

非常感谢:)

@sunface sunface merged commit 4abb83c into sunface:main Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants