1 / 11

FUNGSI-FUNGSI DBASE

FUNGSI-FUNGSI DBASE. - FUNGSI INTEGER. Sintaks : INT (Ekspresi Numerik) Berfungsi untuk membulatkan suatu bilangan Contoh : .? int(7.9) .X=7.5 7 7.5 .? int(-2.1) .? int(X+2) -2 9. - FUNGSI STRING (STR). Sintaks : STR (<ekspresi numerik> [<panjang>] [desimal])

Télécharger la présentation

FUNGSI-FUNGSI DBASE

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. FUNGSI-FUNGSI DBASE - FUNGSI INTEGER Sintaks : INT (Ekspresi Numerik) Berfungsi untuk membulatkan suatu bilangan Contoh : .? int(7.9) .X=7.5 7 7.5 .? int(-2.1) .? int(X+2) -2 9

  2. - FUNGSI STRING (STR) Sintaks : STR (<ekspresi numerik> [<panjang>] [desimal]) Berfungsi untuk mengubah numerik menjadi karakter. Contoh : .? str(15.12345) 15 .? str(123.45,5) 123

  3. Panjang: Panjang ekspresi numerik termasuk titik desimal Desimal : Posisi desimal dalam ekspresi

  4. FUNGSI SUBSTRING (SUBSTR) Sintaks : SUBSTR (<ekspresi chr> [<staring position>] [number of chr]) Berfungsi utk mengambil beberapa karakter Contoh : .store “STIMIK GUNADARMA” TO NAMA .? substr(NAMA,7) GUNADARMA .? substr(“1853 4780 21245”,6,2) 47

  5. FUNGSI VAL Sintaks : VAL (ekspresi karakter) Berfungsi untuk merubah karakter menjadi Numerik Contoh : .? val(“ABCD”) 0.00 .? val(“12.456”) 12.456 .? val(“123ABC” 123.00

  6. FUNGSI LENGTH (LEN) Sintaks : LEN (ekspresi karakter) Berfungsi untuk menghitung panjang karakter Contoh : .? len(“XYZ”) 3 .? len(“1234567”) 7 .? len(“ABC DE”) 6

  7. FUNGSI LOG Sintaks : LOG (ekspresi karakter) Berfungsi untuk menghitung logaritma natural Contoh : .? log(1) 0 .? log(10) 2.30

  8. FUNGSI ROUND Sintaks : ROUND (ekspresi karakter, <desimal>) Berfungsi untuk pembulatan numerik (sampai desimal angka) Contoh : .? round(1.234567,2) 1.230000 .? round(1.234567,4) 1.234500

  9. FUNGSI SPACE Sintaks : SPACE(ekspresi nuerik) Berfungsi untuk membuat karakter blank sebanyak ekspresi numerik Contoh : .? “Halo”+space(5)+”Bandung” Halo Bandung .Kosong=4 .? “Univ”+Kosong+”Gunadarma” Univ Gunadarma

  10. FUNGSI SQRT Sintaks : SQRT (ekspresi numerik) Berfungsi untuk mencari akar dari suatu ekspresi numerik Contoh : .? sqrt(16) 4.00 .store 100 to B .? sqrt(B) 10.00

  11. FUNGSI TRIM Sintaks : TRIM(ekspresi karakter) Berfungsi untuk menghilangkan spasi yang terdapat di ujung karakter Contoh : .? trim(“Muhammad “) Muhammad .? trim(“Halo “)+”Bandung” HaloBandung

More Related