Skip to content
Merged
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
4 changes: 2 additions & 2 deletions src/standard_input/floating_point_numbers.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ you get from `IO.readln` into a `double` using `Double.parseDouble`.
void main() {
String gpaString = IO.readln("What is your GPA? ");
double gpa = Double.parseDouble(gpaString);
IO.println("You're GPA is " + gpa);
IO.println("Your GPA is " + gpa);
}
```

So long as they type something which can be interpreted as a `double` (like `123` or `14.5`)
you will get a value for the `double` variable. Otherwise the program will crash.
you will get a value for the `double` variable. Otherwise, the program will crash.