Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
PHPmaster PHPmaster is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 332
Rep Power: 14
PHPmaster mempunyai hidup yang Normal
Default [ASK] apa nama fungsi sql untuk membulatkan desimal ?

==CASE CLOSED==



sori gan nanya nya dasar bngt

gw coba pke round malah desimal lain nya brubah jd angka 0

gw pke ni bwt di view table



contoh :

round(((total_buy/total_value)*100),3) as "percent_buy"



tapi hasilnya :

46,774000000000000000000000000



yang gw mw, hasil nya y 46,774 aj gan

pke fungsi apa y?



sori ni dasar bngt













thx gan







solusi :


Quote:






Originally Posted by masdono



cast(round(((total_buy/total_value)*100),3) as numeric(18,3))






mantep gan

solusi nya canggih

berhasil





dinanti melon nya y





thx bngt gan..





====



@yg dh bantu

trima kasih banget y

nanti klo da permasalahanlgi gw bkin trit lgi, klo msalah melon gampang

skali thx y..



</div>

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 05:21 PM.


no new posts