Posts by Bruno • 16 points
3 posts
-
-1
votes1
answer63
viewsA: Limit the number of decimals - JAVA
As you are converting a double to String, could use the format. Replace: String resultadoCalculoFinal = String.valueOf(resultadoCalculo); Why is: String resultadoCalculoFinal = String.format("%.2f",…
-
-1
votes2
answers35
viewsA: Problems running the DDL on a Rest Api via JPA
If your Apirestapplication class is at the root of the project you do not need to have this @Entityscan("com.productos.apirest.models") setting 'Cause Spring will read everything as long as it’s at…
-
-1
votes2
answers82
viewsA: Doubt with recursive function in C
I believe that for you to use recursiveness you would have to call the method within itself, for example: int divide (a,b){ int i = 0; while (a > 0 && a >= b){ a = a - b; i++; return…