Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
php if negative make positive
J.Rodriguez
Programming language:
PHP
2021-05-24 22:00:17
0
Q:
php if negative make positive
Sherwood Botsford
Code:
PHP
2021-07-05 19:13:37
<?php echo(abs(6.7) . "<br>"); echo(abs(-6.7) . "<br>"); echo(abs(-3) . "<br>"); echo(abs(3)); ?>
0
Tags
php
make
Related
prepend 0 to number php
if is alphabet php
how to calculate quantity and price in php
check number is positive or negative in php
how to create random alphanumeric in php
php generate random alphanumeric string
php if less than number
php float 2 decimais
fix adding one more plus in php in loop
php number padding
negative to positive php
php random integer
php 0 padding left
New to Communities?
Join the community