search
HomeTopicsAccessHow to use the Round function in access database

How to use the Round function in access database

Nov 23, 2020 pm 05:11 PM
accessrounddatabase

How to use the Round function in access database

How to use the Round function in the access database:

(Related recommendations: access database tutorial)

Rounding The question

select round(83.124,2) as t from jqdltb

is displayed as: 83.12

select round(83.125,2) as t from jqdltb

is displayed as: 83.12

select round(83.126,2) as t from jqdltb

is displayed as: 83.13

The question is, how to round it into five What about rounding up?

The following is how to use this method to adjust to achieve rounding:

Use the int function and add 0.005, then *100, then /100

as shown below:

select int((83.121+0.005)*100)/100 as t from jqdltb

Displayed as: 83.12

select int((83.124+0.005)*100)/100 as t from jqdltb

Displayed as: 83.12

select int((83.125+0.005)*100)/100 as t from jqdltb

Displayed as: 83.13

select int((83.126+0.005)*100)/100 as t from jqdltb

Displayed as: 83.13

select int((83.129+0.005)*100)/100 as t from jqdltb

Displayed as: 83.13

The above is the detailed content of How to use the Round function in access database. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:csdn. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment