IT Nursery
Today, I was looking through some C++ code (written by somebody else) and found this section: double someValue = ... if (someValue < std::numeric_limits<double>::epsilon() && someValue > -std::numeric_limits<double>::epsilon()) {...
  • May 27, 2022
  • 0 Comments
A colleague of mine stumbled upon a method to floor float numbers using a bitwise or: var a = 13.6 | 0; //a == 13 We were talking about...
  • May 26, 2022
  • 0 Comments
I need to format a float to “n”decimal places. was trying to BigDecimal, but the return value is not correct… public static float Redondear(float pNumero, int pCantidadDecimales) { //...
  • May 25, 2022
  • 0 Comments