L_Register

L-Register need addition information to convert in-fix to post-fix. Note that Internally all calculators are UPN calculators.

Author

"Martin Krischik" «krischik@users.sourceforge.net»

Constructors

Link copied to clipboard
constructor(Owner: Calculator)
Assign one L-Register to another one

Types

Link copied to clipboard
infix operations and there level
0(
11Functions
22R→P, P→R
22yˣ ʸ√x
33× ÷
44+ -
55AND
66OR XOR
7=)
8% Constant
9NOP

Properties

Link copied to clipboard
val Base_N_Binary: Int = 2
Base for binary
Link copied to clipboard
val Base_N_Decimal: Int = 10
Base for Decimal
Link copied to clipboard
Base for Hexadecimal
Link copied to clipboard
val Base_N_Octal: Int = 8
Base for Octal
Link copied to clipboard
on FX-603P the display precision is always 10 event with the display not being able to show more
Link copied to clipboard
private val Internal_Precision: Int
The Casio had an internal precision of 12 digits - BCDFloat are approximately 18 digits.
Link copied to clipboard
private val Logger: Logger
class logger instance
Link copied to clipboard
Maximum supported Exponent + 1
Link copied to clipboard
Operation requested after this number was entered.
Link copied to clipboard
private val Owner: Calculator
Link copied to clipboard
private open var Parenthesis: Int
Parenthesis opened before this number was entered - max is 3.
Link copied to clipboard
i.E.
Link copied to clipboard
private val TAG: String
class logger tag.
Link copied to clipboard
private open var Ten_Power: Array<Int>
powers of 10 needed to move the decimal point for Format_Engineering.
Link copied to clipboard
private val Two_Power_15: Long = 32768
±1¹⁵
Link copied to clipboard
private val Two_Power_31: Long = 2147483648
2³¹
Link copied to clipboard
private open var Value: Number
Value of the register for BCD Calculations

Functions

Link copied to clipboard
open fun Assign(Right: IL_Register)
open fun Assign(Right: L_Register)
Assign one L-Register to another one
Link copied to clipboard
open fun Clear(AC: Boolean)
Clear content of Register
Link copied to clipboard
protected open fun clone(): Any
Link copied to clipboard
open fun Dec_Parenthesis()
Decrement parenthesis level (+-×÷ ...
Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
protected open fun finalize()
Link copied to clipboard
Format in standard format.
Link copied to clipboard
open fun Format_Binary(Value: Number): Array<Short>
Format Value in standard format
Link copied to clipboard
open fun Format_Decimal(Value: Number): Array<Short>
Format Value in standard format
private open fun Format_Decimal(Text: Array<Short>, Value: Long, Index: Int): Int
format a decimal integer and add it ot the given alpha sting.
Link copied to clipboard
open fun Format_Engineering(Value: Number, Offset: Int): Array<Short>
Format Value in standard format
Link copied to clipboard
open fun Format_Fixed(Value: BCDFloat, Digits: Int): Array<Short>
Format Value in standard format
Link copied to clipboard
open fun Format_Float(Value: Number): Array<Short>
Format Value in standard format
Link copied to clipboard
open fun Format_Fraction_ABC(Value: Number): Array<Short>
Format Value in standard format
Link copied to clipboard
open fun Format_Fraction_DC(Value: Number): Array<Short>
Format Value in standard format
Link copied to clipboard
open fun Format_Hexadecimal(Value: Number): Array<Short>
Format Value in standard format
Link copied to clipboard
open fun Format_Octal(Value: Number): Array<Short>
Format Value in standard format
Link copied to clipboard
Format in printer format
open fun Format_Print(Value: Number): Array<Short>
Format Value in standard format
Link copied to clipboard
open fun Format_Round(Value: Number, Digits: Int): Array<Short>
Format Value in standard format
Link copied to clipboard
open fun Format_Serial(Value: Number): String
Format Value for use with Serial port
Link copied to clipboard
private open fun Format_Serial_Float(Value: BCDFloat): String
Format Fraction Value for use with Serial port
Link copied to clipboard
private open fun Format_Serial_Fraction(Value: BCDFraction): String
Format Fraction Value for use with Serial port
Link copied to clipboard
private open fun Get_16bit(Value: Number): Long
Converts a signed long into an 16 unsigned integer
Link copied to clipboard
private open fun Get_32bit(Value: Number): Long
Converts a signed long into an 32 unsigned integer
Link copied to clipboard
fun getClass(): Class<out Any>
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun Inc_Parenthesis()
Increment parenthesis level (+-×÷ ...
Link copied to clipboard
open fun Is_Finite(): Boolean
check value is normal real
Link copied to clipboard
fun notify()
Link copied to clipboard
fun notifyAll()
Link copied to clipboard
Get operation (+-×÷ ...
Set operation (+-×÷ ...
Link copied to clipboard
open fun Parenthesis(): Int
Get parenthesis level (+-×÷ ...
open fun Parenthesis(Parenthesis: Int)
Set parenthesis level (+-×÷ ...
Link copied to clipboard
open fun Parse_Serial(Text: String): Number
parse a text representing a number
Link copied to clipboard
open fun Set_NaN()
Set value of the register to NaN
Link copied to clipboard
open fun toString(): String
Convert object to string representation
Link copied to clipboard
fun Value(): Number
Temp_Value of the register.
open fun Value(Value: Number)
Set value of the register.
Link copied to clipboard
fun wait()