| View source on GitHub | 
Returns element-wise largest integer not greater than x.
tf.math.floor(
    x, name=None
)
  Both input range is (-inf, inf) and the output range consists of all integer values.
x = tf.constant([1.3324, -1.5, 5.555, -2.532, 0.99, float("inf")])
tf.floor(x).numpy()
array([ 1., -2.,  5., -3.,  0., inf], dtype=float32)
  
| Args | |
|---|---|
| x | A Tensor. Must be one of the following types:bfloat16,half,float32,float64. | 
| name | A name for the operation (optional). | 
| Returns | |
|---|---|
| A Tensor. Has the same type as x. | 
    © 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
    https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/math/floor