Mathematica, 17 1414 13 bytes / 1212 7 characters
Round[#⌊#/√2]&√2⌋&
-3 bytes because Mathematica accepts the char √, which I copied from this MathGolf answer.
-1 byte, -5 characters, as per @Mark S. suggestedsuggestion, by using ⌊⌋
.
⌊#/√2⌋&
to save 1For just one more byte and(but 5 more characters, but this no longer rounds) I can always round to the nearest integer, as it always rounds down. A similar program can be made to always round up. with
Round[#/√2]&