How to restrict who may read my blog?
Change decimal to fraction
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > MySQL database development > Change decimal to fraction 13 January 2010 13:53:58

  Top users: 
  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:

Change decimal to fraction

Warren S. Wyght 7 October 2003 00:27:27
 I would like to know how to change a decimal to a fraction for printout
purposes only.

I.E.

34.0625 = = 34 1/16

The number or float in the DB would still be the same but when it is
sent to the front end I would like it to be sent as a fraction to the
nearest 1/16th. Is there a method in MySql to do this?

Thanks

Warren


--
MySQL Windows Mailing List
For list archives: http://lists.mysql.­com/win32
To unsubscribe: http://lists.mysql.­com/win32?unsub=gcdm­w-win32@m.gmane.org


Add comment
Ignatius Reilly 7 October 2003 00:04:39 permanent link ]
 Try something along this line:

SELECT
FLOOR( mycol ) AS integer_part,
ROUND( ( mycol - FLOOR( mycol ) )*16 )
AS num

Ignatius
___________________­______
----- Original Message -----
From: "Warren S. Wyght" <warren@wyght.com>
To: <win32@lists.mysql.­com>
Sent: Monday, October 06, 2003 11:27 PM
Subject: Change decimal to fraction

I would like to know how to change a decimal to a fraction for printout> purposes only.>
I.E.>
34.0625 = = 34 1/16>
The number or float in the DB would still be the same but when it is> sent to the front end I would like it to be sent as a fraction to the> nearest 1/16th. Is there a method in MySql to do this?>
Thanks>
Warren>
--> MySQL Windows Mailing List> For list archives: http://lists.mysql.­com/win32> To unsubscribe:
http://lists.mysql.­com/win32?unsub=igna­tius.reilly@free.fr>­


--
MySQL Windows Mailing List
For list archives: http://lists.mysql.­com/win32
To unsubscribe: http://lists.mysql.­com/win32?unsub=gcdm­w-win32@m.gmane.org


Add comment
Guest 27 August 2005 18:30:53 permanent link ]
 
how do you change .38 into a fraction?>how do you do it?>what is it in lowest terms?
Add comment
Guest 10 November 2005 04:33:04 permanent link ]
 diz syte izh wack!
Add comment
Guest 29 November 2005 01:51:57 permanent link ]
 What is 22.2222222222222222­22 as a fraction?
Add comment
Guest 25 January 2006 03:14:10 permanent link ]
 how do you change a decimal into a fraction?
Add comment
Guest 2 July 2006 00:39:23 permanent link ]
 .38 = thirty-eight hundredths = 38/100 now simpify, find the number that will go into the top and the bottom numbers of the fraction the same amount of times = 19/50.
Add comment
Guest 3 December 2006 23:09:36 permanent link ]
 How do you change 1.25 as a fraction?:-?­
Add comment
Guest 19 April 2007 19:56:15 permanent link ]
 ;~)­ (:|­ 8-}­ :-$­ 8-|­ B-)­ :^)­ =^B­ =,B­ :-O­ :-P­ X-(­ ]:-)­ O:-)­ :'(­ :-[­ :-\­ :-|­ :-?­ ;-)­ :-*­ :-D­ :-O­ :-)­ :-(­
Add comment
Guest 19 April 2007 19:57:19 permanent link ]
 i dont like tis website it said it was for converting decimals to fractoions!!!!!!!!!­X-(­
Add comment
Guest 22 April 2008 21:39:58 permanent link ]
 this didnt answer my question i want to know how to put 0.9 into a fraction=,B­ =,B­ =,B­ =,B­ =,B­ =,B­ =,B­ =,B­ :-(­ :-(­ :-(­ :-(­ :-(­ :-(­ :-(­
Add comment
Guest 3 June 2009 19:16:34 permanent link ]
 you guys are very intelligent and this is all i have to say

\\\\



\
Add comment
Guest 3 June 2009 19:16:59 permanent link ]
 I love this website
Add comment
Guest 3 June 2009 19:19:19 permanent link ]
 how do you change 4 over 16 to a decimal to a fraction
Add comment
Guest 28 July 2009 22:39:38 permanent link ]
 BIUSHOFF
Add comment
Guest 3 September 2009 23:13:11 permanent link ]
 how would i convert 38 % as a fraction in simple form
Add comment
Guest 8 January 2010 20:04:34 permanent link ]
 I think that your database may be damaged thy the mssql recovery program to fix it. it is here: http://www.recovery­toolbox.com/microsof­t_tool_for_ms_sql_re­covery_for_sql_serve­r_2000_corrupt_datab­ase.html
Add comment
Guest 13 January 2010 13:53:58 permanent link ]
 100113SLCN UGG Bailey Button or not listing, the sale of those UGG Classic Cardy shoes were broken from the factory out of a small amount of code of UGG Classic Mini shoes, if the yardage is complete, it is UGG Classic Tall, it is impossible to thing. See vamps, really UGG very bright and clean, car line is 9 per inch needle, margin is uniform, line moderately elastic, there will be no floating lines, break, jump pin. UGG Ultra Short shoe feel very good, but there is no rupture, breakage. http://www.love-ugg­.com/products_all.ht­ml
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > MySQL database development > Change decimal to fraction 13 January 2010 13:53:58

see also:
Suggestion on building a PC...
Which encoding program?
Serious Power supply testers
pass tests:
What is Your Temperament?
Winx.Stella or Blymm or Flora
see also:

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .