473,322 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

SELECT and Significant Digits

Using MySQL 4.0.12, is there a way to specify significant digits for a
mathematical operation within a SELECT? In other words, the query "select
5/213" defaults to two significant digits (0.02) for the result.

How can I specify the result attributes within a SELECT?

Lukas
Jul 19 '05 #1
2 4056
Kinda hackish, but it works.

select 5 / (213 * 1.00000)
"Lukas Bradley" <lu***@REMOVE-IT-somnia.com> wrote in message
news:wa********************@speakeasy.net...
Using MySQL 4.0.12, is there a way to specify significant digits for a
mathematical operation within a SELECT? In other words, the query "select
5/213" defaults to two significant digits (0.02) for the result.

How can I specify the result attributes within a SELECT?

Lukas

Jul 19 '05 #2
Kinda hackish, but it works.

select 5 / (213 * 1.00000)
"Lukas Bradley" <lu***@REMOVE-IT-somnia.com> wrote in message
news:wa********************@speakeasy.net...
Using MySQL 4.0.12, is there a way to specify significant digits for a
mathematical operation within a SELECT? In other words, the query "select
5/213" defaults to two significant digits (0.02) for the result.

How can I specify the result attributes within a SELECT?

Lukas

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

29
by: mrstephengross | last post by:
Hi all... How can I find out the number of significant digits (to the right of the decimal place, that is) in a double? At least, I *think* that's what I'm asking for. For instance: 0.103 --> 3...
8
by: David Corby | last post by:
Hi everybody, I've got a problem. I'm trying to round a double to a particular number of significant digits, in this case 5, but I can't figure out a way around getting _exactly_ what I want...
6
by: Jonny | last post by:
If you run the following code , you will get 1.12346e07 as the output. What do I need to do if you want all the significant digits output, like 1.123456789e07? #include<iostream> using...
3
by: BuddyWork | last post by:
Hello, Does .Net support significant figures if so can someone point me to the right direction or example code? Thanks,
7
by: Michael Howes | last post by:
MSDN documentation for format strings seems ambiguous. It's says things like "significant digits or number of decimal places" all over the place. Well those two things are different. How do I...
2
by: Mukesh_Singh_Nick | last post by:
What is meant by the "most significant digits" in the following statement? <BLOCKQUOTE> With %g and %G, the precision modifier determines the maximum number of significant digits...
3
by: Ethan Furman | last post by:
Hey all. My thanks to all who have responded so far with my other questions. It is much appreciated. Some background on what I'm doing (a good explanation can be found at...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.