首页
❯
php
c++
javascript
java
android
vue.js
pass-by-reference
default-value
arrays
更多 »
登录
bit-manipulation
更多 »
javascript
floating-point
bit-manipulation
Using bitwise OR 0 to floor a number
A colleague of mine stumbled upon a method to floor float numbers using a bitwise or: We were talking about it and wondering a few things. How does it work? Our theory was that using such an operator casts the number to an integer, thus removing the f
1
...
2
3
4
5
标签
更多 »
php
pass-by-reference
optional-parameters
default-value
javascript
arrays
dom
function
string
object
serialization
tostring
visibility
syntax
jslint
use-strict
operators
equality
equality-operator
identity-operator
datetime
timestamp
date-arithmetic
redirect
angularjs
loops
foreach
iteration
scope
variables