Minecraft Wiki

Back to profile

  • Page 1 of 1
  • 1-1 of 1
You do not have permission to add comments or reply. Please make sure you are logged in, have validated your email address, and have performed at least one edit to an article.
Avatar for Picklerage-gpuser

Hey, I was reading the page on anvil mechanics, and in the section for "Costs for Sacrifice Repair" I saw the formulas: 100-floor(0.12*MaxD) and 1+floor((S-N)/100). I am uncertain what variable "floor" is representing, and it also seems that the equation in parentheses is supposed to show how to calculate "floor". However, with the way it is set up, the formula makes it seem that you need to multiply "floor" by "(0.12*MaxD)" or "((S-N)/100)" rather than replace the "floor" variable with the outcome of the equation in parentheses. Just a few questions I was wondering about, and somethings you might want to change if what I'm saying is correct. However keep up the amazing work, your dedication to the forums is incredible. Cheers!

Avatar for MentalMouse42

Sorry I haven't been keeping up here lately, but here's a bit of explanation: "floor()" is not a variable, it's a fairly standard function. It returns the largest integer smaller than the input (also known as rounding down). Note that while floor(4.5) is 4, floor (-4.5) is -5.

  • Page 1 of 1
  • 1-1 of 1