Get floating point numbers from a list

livestrong

I am working with a table having amount field of type DECIMAL(5,2). The values in the column are

id  amount
1   9.00
2   1.83
3   7.01
4   8.00
5   99.85

I have to get the columns with only that have nonzero after decimal.

From the above list i should get

id  amount
2   1.83
3   7.01
5   99.85

How should i write the query to get the result?

I am using MySql 5.6.

Drew

Just a guess:

SELECT * 
from tblname 
where amount=FLOOR(amount)

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Require fails with floating point numbers

分類Dev

Ceil only floating point numbers in bash linux

分類Dev

Python regex match certain floating point numbers

分類Dev

Count number of digits after `.` in floating point numbers?

分類Dev

Get a list of numbers from range(s) of number

分類Dev

How does the Node console display floating point numbers

分類Dev

Rounding off floating point numbers while building a map

分類Dev

How to add two floating point numbers with opposite sign?

分類Dev

Comparing floating point values converted from strings with literals

分類Dev

How does printf extract digits from a floating point number?

分類Dev

Can GDB correctly parse C-style hexadecimal floating-point numbers?

分類Dev

Make a list of a list from a list with consecutive numbers

分類Dev

Floating point not iterable python

分類Dev

Issue with comparison with floating point

分類Dev

Prod and Floating Point

分類Dev

Floating point to binary conversion

分類Dev

Floating point division in Bash

分類Dev

How to multiply numbers from list?

分類Dev

Generate list of numbers from a list with probability weights

分類Dev

Making up point from two numbers from different cells in Excel

分類Dev

convert single precision floating point to half precision floating point

分類Dev

How to get the sum of a list of numbers with recursion?

分類Dev

julia floating point compare for zero

分類Dev

Generate random floating point number

分類Dev

Read in numbers from csv file with point as thousands separator

分類Dev

Convert point forecasts in fable from exponential format to normal numbers

分類Dev

Get list from dictionary with list

分類Dev

Get latitude/longitude from BigQuery Geography Point

分類Dev

Generate Random numbers from tuple list in Python

Related 関連記事

  1. 1

    Require fails with floating point numbers

  2. 2

    Ceil only floating point numbers in bash linux

  3. 3

    Python regex match certain floating point numbers

  4. 4

    Count number of digits after `.` in floating point numbers?

  5. 5

    Get a list of numbers from range(s) of number

  6. 6

    How does the Node console display floating point numbers

  7. 7

    Rounding off floating point numbers while building a map

  8. 8

    How to add two floating point numbers with opposite sign?

  9. 9

    Comparing floating point values converted from strings with literals

  10. 10

    How does printf extract digits from a floating point number?

  11. 11

    Can GDB correctly parse C-style hexadecimal floating-point numbers?

  12. 12

    Make a list of a list from a list with consecutive numbers

  13. 13

    Floating point not iterable python

  14. 14

    Issue with comparison with floating point

  15. 15

    Prod and Floating Point

  16. 16

    Floating point to binary conversion

  17. 17

    Floating point division in Bash

  18. 18

    How to multiply numbers from list?

  19. 19

    Generate list of numbers from a list with probability weights

  20. 20

    Making up point from two numbers from different cells in Excel

  21. 21

    convert single precision floating point to half precision floating point

  22. 22

    How to get the sum of a list of numbers with recursion?

  23. 23

    julia floating point compare for zero

  24. 24

    Generate random floating point number

  25. 25

    Read in numbers from csv file with point as thousands separator

  26. 26

    Convert point forecasts in fable from exponential format to normal numbers

  27. 27

    Get list from dictionary with list

  28. 28

    Get latitude/longitude from BigQuery Geography Point

  29. 29

    Generate Random numbers from tuple list in Python

ホットタグ

アーカイブ