Skip to content

Commit

Permalink
Rating a 2 decimales
Browse files Browse the repository at this point in the history
  • Loading branch information
inigoim committed Oct 26, 2022
1 parent 93d1f5d commit ee6d733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CatalogoIMDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void imprimirInfoInterprete(String nombre) {

Interprete inter = interpretes.buscarInterprete(nombre);
if (inter != null)
System.out.printf("%s (Rating: %s) -> %s%n",
System.out.printf("%s (Rating: %.2f) -> %s%n",
inter.getNombre() ,inter.getRating(), inter.getFilmografia());
else
System.out.println("Actor no encontrado en la base de datos.");
Expand Down

0 comments on commit ee6d733

Please sign in to comment.