Skip to content
  • EN
    • GR
Call us now! +44 (0) 2037347158
SBZ Systems
  • Software
  • Electronic Invoicing
    • Certified eInvoicing B2B & B2C
    • Business to Government – B2G
    • Login
    • Sign up
    • Document Verification
  • The company
    • News
    • About us
    • Partners
    • Contact
  • Support
    • EMDI
    • Electronic Signatures
    • General Issues
    • Remotely
    • Out of Working Hours Support
    • myDATA Status
    • myDATA E-invoicing Service Providers Status
  • FAQ

More results...

Filter by Categories
General Issues
Support - Electronic Signatures
News
Services
Software Solutions
  • Software
  • Electronic Invoicing
    • Certified eInvoicing B2B & B2C
    • Business to Government – B2G
    • Login
    • Sign up
    • Document Verification
  • The company
    • News
    • About us
    • Partners
    • Contact
  • Support
    • EMDI
    • Electronic Signatures
    • General Issues
    • Remotely
    • Out of Working Hours Support
    • myDATA Status
    • myDATA E-invoicing Service Providers Status
  • FAQ

More results...

Filter by Categories
General Issues
Support - Electronic Signatures
News
Services
Software Solutions
Certified Electronic Invoicing Provider

Decimal Round Up (PHP)

  • Post published:20/11/2021
  • Post category:Free source (Delphi, PHP, Perl)

To round decimals upwards:

PHP
1
2
3
4
function round_up ( $value, $precision ) {
$pow = pow ( 10, $precision );
return ( ceil ( $pow * $value ) + ceil ( $pow * $value - ceil ( $pow * $value ) ) ) / $pow;
}

For example:

1
echo round_up(100.243421,2)

gives the result

1
100.25

 

Source: https://stackoverflow.com/questions/8239600/rounding-up-to-the-second-decimal-place

 

 

 

Categories
  • Android development
  • Asterisk (Issabel, FreePBX, Elastix, Trixbox)
  • Databases issues and tips
  • Firebird
  • Free applications
  • Free source (Delphi, PHP, Perl)
  • Linux general issues
  • OpenOffice / LibreOffice / Microsoft Office
  • SQL
  • Tax Mechanisms issues
  • Third party useful software
  • Useful attachments in Word format
  • Web development
  • Windows general issues
Latest
  • Decimal Round Up (PHP)
  • Changing RSS feed url on WordPress
  • Convert tables from innodb to MyISAM – WordPress
  • Programmatically selecting a TTreeView node by index – Delphi
  • Field appearance under certain conditions and line change – FastReport
  • Assign OnKeyDown event on TAdvDBFormPanel (Delphi)
  • Opencart 2.2 redirect issue
  • .htaccess error: Option All not allowed here
  • Error pagination page={page} in SEO (Opencart)
  • Unserialize a string (PHP)

SBZ SYSTEMS

20 Iasonidou Str. (1st floor)
16777 Elliniko, Athens, Greece
Tel.: +30 2118002930
Operating hours
Monday - Friday
09:00 – 18:00

SUPPORT

  • General
  • Pricing Policy
  • Remote
  • Client Area

COMPANY

  • About
  • News
  • Quality Management
  • Contact

OTHER

  • Sitemap
  • Jobs
  • Information Security Policy
  • Terms & Conditions
Quality Management Member of SEPE Member of EETT
                        

Copyright © 2025 - SBZ Systems