Skip to content

Commit

Permalink
FahrenheitToCelsius was fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
anviaan committed Jul 15, 2023
1 parent 7646de0 commit 92c0f55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Manifest-Version: 2.0
Manifest-Version: 3.0
Main-Class: net.anvian.conversor.Main

2 changes: 1 addition & 1 deletion src/net/anvian/conversor/util/Temperatures.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static void CelsiusToKelvin(double grades, String from, String to) {
}

public static void FahrenheitToCelsius(double grades, String from, String to) {
double transform = (grades * -32)* 5/9;
double transform = (grades - 32)* 5/9;
JOptionPane.showMessageDialog(null, "Tienes " + grades + " " + from + " equivalnte a " + transform + " " + to);
}

Expand Down

0 comments on commit 92c0f55

Please sign in to comment.