Tecnologia, programação e muito Visual FoxPro.

segunda-feira, 2 de janeiro de 2012

Re: ]] XL-mania [[ Pembulatan mengabaikan belakang koma

 

fungsi TRUNC

yaitu fungsi yg menghilangkan bagian pecahan suatu bilangan 

=TRUNC(B5*C5, 0)
atau karena argument ke2 defaulatnya = 0 
=TRUNC(B5*C5)

--------------- maaf kepencet F1 ------------------
TRUNC worksheet function
Truncates a number to an integer by removing the fractional part of the number.

Syntax
TRUNC(number,num_digits)

Number :
is the number you want to truncate.

Num_digits :
is a number specifying the precision of the truncation. The default value for num_digits is 0 (zero).

Remark
TRUNC and INT are similar in that both return integers. TRUNC removes the fractional part of the number. INT rounds numbers down to the nearest integer based on the value of the fractional part of the number. INT and TRUNC are different only when using negative numbers: TRUNC(-4.3) returns -4, but INT(-4.3) returns -5 because -5 is the lower number.



2011/12/29 Kekal Abadi <kekabadi@yahoo.com>
>
> Saya ingin menanyakan fungsi apa agar bisa menampilkan angka pembulatan hasil hitungan secara otomatis dengan mengabaikan berapapun angka di belakang koma, tidak seperti otomatis defaultnya xl dimana kalau angka di belakang koma >5 akan dibulatkan ke atas.
> Contoh:
> 222.333 x 2% = 4.446, 66 dibulatkan menjadi 4.446, bukan 4.447
> 222.111 x 2% = 4.442, 22 dibulatkan menjadi 4.442, bukan 4.443
>  
> contohnya terlampir
> Atas bantuannya diucapkan terima kasih.
> Kekal

__._,_.___
Recent Activity:
+-:: XL-mania ::::::::::::::::::::----------------------------------+
| ayooo... coba cari XL-mania di linkedin.com                       |
| momods kebanyakan e-mail :(... unread di kantor 6 ribu lebih :(   |
+-------------------------------------------------------------------+
| DILARANG : MLM, money game, OOT, iklan tanpa izin, SARA, testing, |
| pembicaraan pribadi, one line message,  melecehkan,  tidak sopan. |
+-------------------------------------------------------------------+
| Buat subjek yang kreatif, jangan : "tanya", "help", "mohon bantu" |
| Usahakan besar attachment < 200 kb. Gunakan  winzip  jika  perlu. |
+-------------------------------------------------------------------+
| Ajak teman-teman Anda bergabung dengan mengirim e-mail kosong ke  |
| XL-mania-subscribe@yahoogroups.com atau kirimkan mereka file dari |
| http://groups.yahoo.com/group/XL-mania/files/Promotion/           |
+-------------------------------------------------------------------+
| Berikan testimoni di : http://www.friendster.com/xlmania atau...  |
| http://www.xl-mania.com/2008/06/testimoni-xl-mania.html           |
+-------------------------------------------------------------------+
| Message lama ada di :                                             |
| http://groups.yahoo.com/group/XL-mania/messages [perlu yahoo id]  |
| http://www.mail-archive.com/xl-mania@yahoogroups.com              |
+-------------------------------------------------------------------+
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

Nenhum comentário:

Arquivo do blog