JMDash Docs
HomeLearn JM-Libraries & FunctionsCode examplesJM- Repo
  • Welcome to JM- Docs!
  • Quick introduction
    • What's JM-?
    • JMCompiler
      • How to compile with JMC
  • JM-'s Basics
    • Syntax 101
      • Calling functions
        • Built-in Functions
        • Other libraries
          • File: Read and Write
          • JMDash Math
          • JMDash Time
          • Standard System Input and Output
          • JMDash Argument Handler
          • JMDash Random
        • Custom libraries
      • Data types
      • Conditional statements
      • Conditional loop statements
      • Mathematics' logical conditions
      • Escape/Special characters
      • Variable Modification
      • Error Handling
      • Argument Handling
    • Appendables
    • Directives
  • Design Documents
    • Initial Design Document
    • Initial Design of Libraries Document
    • Initial Design of Error Handling Document
      • The Error Tree
        • Syntax Errors
        • FSErrors
        • MathErrors
        • TimeErrors
        • StdSysError
    • The, Post IDD
    • The, PIDD's First Revision
    • The, PIDD's Second Revision
  • Examples
    • Code examples
      • Hello World in JM-
      • Including libraries in JM-
      • Simple calculator in JM-
      • Argument-based calculator in JM-
Powered by GitBook
On this page

Was this helpful?

  1. JM-'s Basics
  2. Syntax 101

Data types

JM-'s Data types are basically like C++'s

List of Data types

Here is a list of every data type with its syntax.

  • Integer (Whole number): int myInteger = 1;

  • Integer array: int_array(2) myIntArray(1, 2);

  • Double (Floating point number): dbl myDouble = 0.99;

  • Character: char myChar = 'A';

  • Character array: char_array(2) myCharArray(a, b);

  • Boolean: bool myBoolean = true;

  • String: str myString = "Message";

PreviousCustom librariesNextConditional statements

Last updated 7 months ago

Was this helpful?