Data Types in MarathiCode
Numbers, Strings, and Booleans
MarathiCode supports three primary data types: Numbers, Strings, and Booleans.
1. Numbers (संख्या)
Numbers can be integers or floating-point decimals. Both ASCII digits (0-9) and Devanagari digits (०, १, २, ३, ४, ५, ६, ७, ८, ९) are fully supported.
numbers.mr
চল a = 10 // ASCII digits
चल b = ४ // Devanagari digit 4
चल c = 3.14 // Decimal float
छापा(a + b) // Prints 142. Strings (अक्षरमाला)
Strings are text literals enclosed in double quotes "...". They can contain Marathi script, ASCII text, symbols, or spaces.
strings.mr
चल संदेश = "शुभ सकाळ!"
चल नाव = "अमित"
छापा(संदेश)3. Booleans (तार्किक मूल्ये)
Booleans represent logical truth values using खरे (True) and खोटे (False).
booleans.mr
चल सत्य = खरे
चल असत्य = खोटे
छापा(सत्य) // Outputs: खरे
छापा(असत्य) // Outputs: खोटे