Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/com/github/hcsp/datatype/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public class Main {
// 例如 3/2 == 1.0
// 请修复此问题,让3/2的结果为正确的1.5
// 不要修改方法的参数类型
public static double divide(int a, int b) {
public static double divide(double a, double b) {
return a / b;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

不要修改方法的参数类型。。。

}

Expand Down