How To

i am trying make calculator now.


MeNTeN 2021-06-05 02:13

Can i use "×" and "÷"? Or only way to use "*" and "/"?

was8bit 2021-06-05 05:27 (Edited)

Code wise, can only use the operators as shown in the HELP section...



Symbol Example Purpose
- -B Negation
^ X^3 Exponentiation
* 2*Y Multiplication
/ X/2 Division
\ X\2 Integer Division
+ C+2 Addition
- 100-D Subtraction
MOD X MOD 2 Modulo

Operations are performed in mathematical order, for example multiplications and divisions are performed before additions and subtractions.

PRINT 10+2*5-8/4+5^2
The order can be specified explicitly through the use of parentheses, for example:

PRINT (3+4)*5

was8bit 2021-06-05 05:30

For DISPLAYING purposes, you can show the more commonly used symbols...

MeNTeN 2021-06-05 05:57

I want displaying the symbols , but i'm said unexpected character.

was8bit 2021-06-05 06:53 (Edited)

If you know ASCII, lowres is restricted to characters #32 to #95

Lowres NX secretly uses page#4 of the character set for FONT graphics... i have added a font set to this page to demonstrate...

If you leave page#4 blank, LowresNX uses a default font... however, when you add a font set to page#4, lowres then uses YOUR font set...

Notice how i changed M and N.... i only did this to show you a trick... redesign a character you are not using, and make it a character you want...

Now, for example, you can use PRINT "M" and you will see my redesigned M which now likes like × and N now looks like ÷

Chr$ and Font Set.nx | Open in app
2021-06-05 06:53

MeNTeN 2021-06-05 07:01

thanks! I changed the font * to × and / to ÷.

was8bit 2021-06-05 07:09 (Edited)

Cool :)

I am happy to help :)

Log in to reply.