Results 1 to 3 of 3

Thread: Floating number

  1. #1
    Join Date
    Feb 2003
    Location
    JB
    Posts
    26
    Rep Power
    0

    Floating number

    Saya nak tanya satu soalan yg mungkin soalan bodoh kot. saya guna float atau double dalam mysql untuk attribut nilai harga.tapi masalahnya, bila pengguna memasukkan rm 1.50 (contohnya), data yang akan disimpan adalah 1.5. jadi camana nak jadikan data tu 1.50 walaupun saya dah gunakan fungsi round ($duit,2). tetap x jadi.

  2. #2
    Join Date
    Jul 2005
    Location
    KL
    Posts
    68
    Rep Power
    178
    Bila display dengan php, guna
    number_format($duit, 2)

  3. #3
    Join Date
    Feb 2003
    Location
    JB
    Posts
    26
    Rep Power
    0

    Thanks

    x penah plak jumpa fungsi tu.ok terima kasih

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. The ray flowers number six to thirteen.
    By sandeemarci in forum Blogging Discussion
    Replies: 86
    Last Post: 03-10-2010, 12:42 AM
  2. Know Your Personal Identification Number
    By emoney1111 in forum E-Commerce
    Replies: 0
    Last Post: 25-09-2007, 08:37 PM
  3. Tax number , Social Security number for affliate programs
    By cyrick in forum Revenue and Monetization
    Replies: 6
    Last Post: 28-03-2006, 12:33 AM
  4. Your fax-to-email number
    By uniceed2005 in forum Other Webmaster-related Services and Promotion
    Replies: 0
    Last Post: 13-11-2005, 11:49 PM
  5. Floating Semporna
    By deng in forum Websites Review and Suggestion
    Replies: 8
    Last Post: 09-07-2005, 10:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37