Jump to content











Photo
- - - - -

[Update Release] CALCD.G4B v0.2.1 - decimals, functions and more operators

grub4dos

  • Please log in to reply
No replies to this topic

#1 deomsh

deomsh

    Frequent Member

  • Advanced user
  • 196 posts
  •  
    Netherlands

Posted 14 January 2023 - 04:16 PM

New version of CALCD.G4B ready.

 

CALCD.G4B v0.2.1 (20221211)

 

Output  Echood, if exists: in variables 'result' 'MR' 'R' 'resrnd' and 'message'
Prefix  Functions: SUM PRODUCT MEAN VARP VARS STDEVP STDEVS FACT Pnr Cnr "==" ">=" "<=" COUNT

                            MIN MAX COUNTIF
Use     CALCD.G4B [switch] function number1 [number2]|number1 number2|args
Infix     Operators: + - * / ^  Functions: ROUND DECI DIGI FIX
Use     CALCD.G4B [switch] number1 operator|function number2|NUMBER
Postfix Functions: INV SQRT SQ CBRT CB HEX THSEP
Use     CALCD.G4B [switch] number function
Memory  Functions: M M+ M- RM  Clear: MC  Placeholders for number: MR R
Numbers ± 10exp-18 - 2exp63-1, 0!-20!, MR, R (integers hex too, decimals: dot)
Help    CALCD.G4B help|--help|/? [function|operator|mem|ver]

BTW After fatal errors text above is showed always - if you do not like it (anymore) use remarked-out line 89 instead of line 88 (and disable line 88)

New in v0.2.1
Bugfixes (especially in Cubic Root)
Cubic Root (CBRT) gives 18 decimals now (but not rounded!)
Function CRT renamed to CBRT
Function FAC renamed to FACT
Simpler handling of multiple calculations on command-line:
- Continue/ restart calculation with \\ only needed after COUNT
- Functions INV, SQRT and M cannot be used before there argument anymore
- Function CBRT must now be used after argument
- Single number on command-line allowed (including MR, R and 0!-20!)
Help has been rewritten, about 250 examples

New functions:
HEX: convert number/ result to hexa-decimal number (rounddown!)
THSEP: adds thousands-comma-separator to last number/ result (input with thousands-comma's allowed too)
SQ: Square of number
CB: Cubic of number
MIN: lowest number on command-line/ (md)
MAX: highest number on command-line/ (md)
COUNTIF: count of numbers on command-line/ (md) 'satisfying' if-condition
New switch: /Q for quiet operation

Display of 'smallhelp' after (syntax-)error
 

I hope new terminoloqy of function-types 'prefix', 'infix' and 'postfix' with placement of their arguments is helpful.

I found 'Post-op' is used in cases like '2!', the '!' is post-operator.

 

BTW: I'd like to thank steve6375 for his suggestions, although some Function names will not be altered. :rolleyes:

 

Also I'd like to thank our professor of Cambridge-English who helped with my abbreviation of Thousand Separator (THSEP). We didn't found any existing abbreviation.

 

Some 'action' print-screens of new functionality in CALCD.G4B v0.2.1:

 

CALCD v0.2.1 CBRT + help DIGI and use after CB.jpg CALCD v0.2.1 help THSEP + Examples.jpg CALCD v0.2.1 help MIN + Examples MIN - MAX - MAX MD- COUNTIF MD.jpg

 

BTW on second print-screen can be seen that last result can be used as implicit argument, just like on a 'normal' calculator (as long variable R exists). WATCH: only if this argument comes before function/ operator, so not working in case of prefix functions (but R can be used as explicit argument too).

 

On last print-screen Abort-message after syntax-error with 'smallhelp':

 

CALCD.G4B Abort screens with smallhelp after syntax error.jpg

 

MESSAGE for moderating team: updating old post NOT good (see my earlier attempts), but fully new post seems to work



#2 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 14 January 2023 - 07:43 PM

Wow! Very impressive work!

#3 deomsh

deomsh

    Frequent Member

  • Advanced user
  • 196 posts
  •  
    Netherlands

Posted 18 January 2023 - 12:35 PM

Thanks!

 

I fully forgot to tell new function THSEP has a few (secret) aliasses:

 

SQL error in case of link to attached print-screen, but somehow attachment is visible :frusty:

 

BTW: not for the help.... CALCD.G4B help THSEP is still the only way to access THSEP-specific help + examples

 

If a new version is needed, I will mention the aliasses in the help

 

 

Attached Thumbnails

  • CALCD.G4B v0.2.1 Aliasses for THSEP.jpg


#4 deomsh

deomsh

    Frequent Member

  • Advanced user
  • 196 posts
  •  
    Netherlands

Posted 18 January 2023 - 12:35 PM

RESERVED







Also tagged with one or more of these keywords: grub4dos

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users