MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / floor_double

Method floor_double

src/main/java/net/minecraft/util/MathHelper.java:85–89  ·  view source on GitHub ↗

Returns the greatest integer less than or equal to the double argument

(double value)

Source from the content-addressed store, hash-verified

83 * Returns the greatest integer less than or equal to the double argument
84 */
85 public static int floor_double(double value)
86 {
87 int i = (int)value;
88 return value < (double)i ? i - 1 : i;
89 }
90
91 /**
92 * Long version of floor_double

Callers 15

getColorSmoothMethod · 0.95
updateMethod · 0.95
BlockPosMMethod · 0.95
setXyzMethod · 0.95
getMaxChunkYMethod · 0.95
displayDebugInfoMethod · 0.95
runTickMethod · 0.95
updateChunkPositionsMethod · 0.95
renderRainSnowMethod · 0.95
setupTerrainMethod · 0.95
renderCloudsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected