N
N
NewbieL2018-02-24 02:23:08
PHP
NewbieL, 2018-02-24 02:23:08

How to display only an integer?

How to get an integer from this expression: (25 + 53) / 25 * 100, it turns out 32.05128205128205, but how to get just 32? intdiv method is not suitable.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2018-02-24
@NewbieL

floor()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question