Tipe, Nama Dan Nilai

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Tipe, Nama Dan Nilai as PDF for free.

More details

  • Words: 221
  • Pages: 12
TIPE, NAMA dan Nilai BAHASA PASCAL

TIPE 1. Tipe Dasar 1.1. Bilangan Logika Boolean : True – Fals Operatorny: not, and, or, xor

Operasi Not a

Not a

true

False

false

true

and a

b

a and b

True

true

True

True

false

False

false

true

False

false

false

false

or a

b

a or b

True

true

True

True

false

True

false

true

true

false

false

false

xor a

b

a xor b

True

true

False

True

false

True

false

true

True

false

false

false

2. Bilangan Bulat Nama tipe: Integer tipe byte shortint word integer longint

Rentang nilai 0..255 -128..127 0..65535 -32768..32767 -21474834648.. 21474834647

Operasi: a. Aritmatika + : tambah : kurang * : kali div : bagi mod : sisa hasil bagi b. Perbandingan < , <=,>,>=, =, =

3. Bil. Riil nama tipe: Real tipe

Rentang nilai

real

2.9x10-39 .. 1.7x1038

single

1.5x10-45 .. 3.4x1038

double

5.0x10-324 .. 1.7x10308

extended

3.4x10-4932 .. 1.1x104932

Operasi: a. Aritmatika + : tambah : kurang * : kali / : bagi b. Perbandingan < , <=,>,>=, =, =

4. Karakter (huruf, angka) Nam tipe: char Operator: <, <=,>,>=, =, = 5. String (kata) Nama tipe: string Operator: <, <=,>,>=, =, = +,

2. Tipe Bentukan 2.1. tipe dasar yang diberi nama tipe baru ex: type bil_bulat: integer 2.2. Rekaman tipe nama:record

Related Documents

Tipe, Nama, Dan Nilai
November 2019 23
Tipe, Nama Dan Nilai
November 2019 20
Tipe
November 2019 43
Nilai Waktu Dan Uang
December 2019 34