remove number after decimal in php

$var = 252.587254564;
$var = (int)$var; // 252

3
1
Awgiedawgie 440215 points

                                    (int)-1.2

3 (1 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
php function to remove decimal part php cut decimal number remove decimal in porcent php remove decimal percent in php remove number after decimal in php php remove decimal from smount how to trim decimal point in php php remove number remove after decimal remove decimals in php trim number with one decimal places in php how to to cut the decimal 0 in php php strip number to two decimals php remove decimal after place 2 remove 00 in number format php php how to remove th after digit php how to remove the after decimal php float val remove decimal avoid decimal php php remove decimal value remove decimal before point in php convert i remove decimal number in php strip off decimal when adding in php php remove null decimals remove after decimal numbers in php php remove after decimal php number_format remove decimals php number format remove decimals remove decimal value from timestamp php remove 0 after decimal from number php php linux remove decimal remove all decimals round php remove decimals number_format php number format without removing decimal places php how cut decimal php how to get rid of decimals in php remove decimal point php remove decimal value in php remove decimal number php how to remove decimals php how to remove decimal values in php php remove decimal if zero php format numbers remove decimal remove decimal from number in php remove decimal if zero php remove letters and leave numbers and decimals php why is php cut off decimal places php remove decimal from value php remove decimal 00 remove decimal point in php php string to float remove currency symbol how to get rid of decimal in php how to ignore decimal value in php remove decimal part in php how to remove decimal point in php remove point value in php remove flot number in php php remove decimal intval remove decimal php remove decimal in laravel remove zero after decimal point in php remove point in integer value in php how to get number format 2 digit without round off in php how to get number format 2 digit without round_off how to ignore fraction in php php time remove point decimal remove in php php round always 2 decimal places limit values after decimal php remove decimal places php how to remove long float value using php how to remove float value in php remove digits after decimal in php php cut off decimal places remove points in number in php php drop extra decimal values php remove point from number how to remove decimal number in php php remove decimal php remove decimal number from a number remove decimals php remove decimal places from float in php how to remove decimal in php remove decimal to number in php remove desimal php how to take off decimal in php how to remove the points in php how to drop decimals in PHP remove decimal in php php remove decimal from number php remove decimals how to remove decimal from a number php php remove decimals from number
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source