Julia Quick Note [08] Variable Type (Int, Float, Bool, Char, String)

Variable type (Int, Float, Bool, Char, String) (Example of writing)

note08


◆ Number type
 Int
  Int8
  Int16
  Int32
  Int64
  Int128
 UInt
  UInt8
  UInt16
  UInt32
  UInt64
  UInt128
 Float
  Float16
  Float32
Float64 → Click here for general real numbers

◆ True / false type
 Bool

◆ Character string type
 Char
 String

◆ Confirmation of type
 typeof()

Commentary

Int type
Int type is a signed integer type, and there are Int8, Int16, Int32, Int64, Int128.
Int8 is 8 bits, Int16 is 16 bits, as well as 32 bits, 64 bits and 128 bits.
UInt
The
UInt type is an unsigned integer type.
Bool
Bool type is true or false.
Float
The
Float type is a floating point number.
String type
Char represents a single character type.
String represents the type of a series of strings.
Char type confirmation ↓ ![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399135/803a99d6-0b4b-1894-0f0d-008802715318.png) Confirmation of String type ↓ ![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399135/c5b1b546-8622-9683-4dbf-e0226399a019.png)

Table of contents

Julia Quick Look Note [01] How to use variables and constants Julia Quick Look Note [02] Arithmetic Expressions, Operators [Julia Quick Note [03] Complex Numbers] (https://qiita.com/ttabata/items/225c77a4d71fafc3e482) Julia Quick Look Note [04] Regular Expression [Julia quick note [05] if statement] (https://qiita.com/ttabata/items/4f0bcff1e32f60402dfb) [Julia fast-drawing note [06] loop processing] (https://qiita.com/ttabata/items/2a53825101b0b75fb589) [Julia Quick Note [07] try, catch, finally] (https://qiita.com/ttabata/items/1d6fe990526c99b65b5f) [Julia Quick Look Note [08] Variable Types (Int, Float, Bool, Char, String)] (https://qiita.com/ttabata/items/2b84a826e39bfe432b62) [Julia Quick Look Note [09] Function (1) Basics] (https://qiita.com/ttabata/items/d9b4f2728ec0dbcc6394)

(* We will continue to increase the content)

Related information

: paperclip: Julia --Official page https://julialang.org/

: paperclip: Julia --Japanese official document https://julia-doc-ja.readthedocs.io/ja/latest/index.html

: paperclip: First time Julia and installation (Windows & Linux) https://qiita.com/ttlabo/items/b05bb43d06239f968035

:paperclip: Julia - Mathematics https://docs.julialang.org/en/v1/base/math/

Opinions etc.

If you have any opinions or corrections, please let us know.

Recommended Posts

Julia Quick Note [08] Variable Type (Int, Float, Bool, Char, String)
Julia Quick Note [03] Complex Numbers
Julia Quick Note [10] Function (2) Application
Julia quick note [05] if statement
Julia Quick Note [04] Regular Expression
Julia Quick Note [09] Function (1) Basics
Julia Quick Note [07] try, catch, finally
Julia Quick Note [02] Arithmetic formulas, operators