Jump to content

Botre

Members
  • Posts

    5883
  • Joined

  • Last visited

  • Days Won

    18
  • Feedback

    100%

Everything posted by Botre

  1. Botre

    Ratio class

    LAST UPDATE: MARCH 10, 2015 package org.bjornkrols.math.ratio; import java.math.BigDecimal; /** * @author Bjorn Krols (Botre) * @version 0.0 * @since March 10, 2015 */ public final class Ratio { private Ratio() { // This class should never be instantiated. // Do not delete or make accessible. } /* * INT */ public static int percentage(int part, int whole) { return part * 100 / whole ; } /* * LONG */ public static long percentage(long part, long whole) { return part * 100 / whole ; } /* * FLOAT */ public static float percentage(float part, float whole) { return part * 100 / whole ; } public static float decimal(float part, float whole) { return part / whole ; } /* * DOUBLE */ public static double percentage(double part, double whole) { return part * 100 / whole ; } public static double decimal(double part, double whole) { return part / whole ; } /* * BIG DECIMAL */ private static final BigDecimal HUNDRED = new BigDecimal(100); public static BigDecimal percentage(BigDecimal part, BigDecimal whole) { part.multiply(HUNDRED).divide(whole); } public static BigDecimal decimal(BigDecimal part, BigDecimal whole) { return part.divide(whole); } }
      • 1
      • Like
  2. 1093
  3. 1089
  4. 1086
  5. If you want to you can pay to test out a unique, potentially revolutionary, new feature. Most of the work for this new feature seems to have been outsourced, the developer who spent his time researching / writing the thing needs to be payed for his time. The feature seems to be working, only time will tell what its impact on bans is going to be.
  6. 1084
  7. 1082
  8. "I sold bonds and spent all my profits buying 20 iPhones, the end" - Roomscape
  9. I was walking down the street the other day, minding my own weird business, when I suddenly noticed this well-dressed person walking on the other side of the sreet: fancy blazer, leather shoes, nice shirt, sunglasses, thick, full hair; you know: the whole package. It was almost intimidating, so much that it really took a while for my brain to process that this person must have been something like 12 years old. Walking about ten feet infront of this little guy, was his mother, and I know she was who I say she is, because the kid was yelling some mean disturbing shit at her like it was nothing. KID:"Ay woman... woman... *whistle* ... I want some fucking Red Bull" She stops. At this point, I'm fucking psyched because... I'm about to expect some kind of reality tv super rage breakdown scene. I also stop walking. KID: "Ay what you looking at my mom for?". Boom I part of the scene know. ME: "I'm gonna fuck your mommy, also... you're drinking bull jizz". Kid got really mad, tries to cross over the street, gets run over by a huge truck.
  10. Looks very... feminine...
  11. 1077
  12. 1074
  13. 1072
  14. Yes. Curb ftw
  15. 1068
  16. 1066
  17. Who would be interested in taking an "OSBot scripting from scratch" class? Not sure if it would just be text or actual video lectures, let me know what you prefer. I'd love to teach and I'm sure some of you would love to learn. I've been pondering on this idea for a while, however it would require a significant amount of interest / dedication from the participants in order for it to be worth my time. Ideally it would be free. I'm thinking about doing a small workshop or something first to test this out. Let me know what you think
  18. 1064
×
×
  • Create New...