The NoteTab Basic List is a Public Group with 2476 members.
 The NoteTab Basic List

 Public Group,
 2476 members
Primary Navigation
Number format for math expressions
Expand Messages
 0 Attachment
To: notetab@yahoogroups.com
Subject: Number format for math expressions
From: Daniel Prince <neutrino1200@...>
Date: Sun, 29 Jul 2012 02:27:29 0700
If I use the Calculate Expression function in NoteTab Standard 4.95
or NoteTab Light 6.2 to raise two to the 119th power, I get this
answer: 664613997892457936000000000000000000.
I would VERY much prefer to get this answer: 6.646E+0035. I think
that all answers that are over 100,000,000 should be in scientific
notation.
If I use the Calculate Expression function in NoteTab to raise two
to the 120th power, I get this answer: 1.3E+0036. This answer has
only two significant digits. I would like to have four significant
digits.
Is there a Calculate Expression function in NoteTab to convert
numbers into scientific notation?
I also think that all numbers greater than 10,000 should have commas
in them for users in the US. (I think that in Europe they use
periods instead of commas for this. Programs can tell which to use
by looking at Windows settings.)
If a new version has these improvements, I will definitely upgrade
to the latest Pro version. 0 Attachment
While I an not aware of scientific notation I bet you can easily write a
custom function to do it. You might ask on the clips list.
If you look up calc or math in help you find this limitation on
integers: 9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
Write the clips list and I bet you are given a solution inside of a day.
On 7/29/2012 5:49 AM, Daniel Prince wrote:
> To: notetab@yahoogroups.com
> Subject: Number format for math expressions
> From: Daniel Prince <neutrino1200@...>
> Date: Sun, 29 Jul 2012 02:27:29 0700
>
> If I use the Calculate Expression function in NoteTab Standard 4.95
> or NoteTab Light 6.2 to raise two to the 119th power, I get this
> answer: 664613997892457936000000000000000000.
>
> I would VERY much prefer to get this answer: 6.646E+0035. I think
> that all answers that are over 100,000,000 should be in scientific
> notation.
>
> If I use the Calculate Expression function in NoteTab to raise two
> to the 120th power, I get this answer: 1.3E+0036. This answer has
> only two significant digits. I would like to have four significant
> digits.
>
> Is there a Calculate Expression function in NoteTab to convert
> numbers into scientific notation?
>
> I also think that all numbers greater than 10,000 should have commas
> in them for users in the US. (I think that in Europe they use
> periods instead of commas for this. Programs can tell which to use
> by looking at Windows settings.)
>
> If a new version has these improvements, I will definitely upgrade
> to the latest Pro version.
>
>
> 
>
> Fookes Software: http://www.fookes.com/
> NoteTab website: http://www.notetab.com/
> NoteTab Discussion Lists: http://www.notetab.com/groups.php
>
> ***
> Yahoo! Groups Links
>
>
>
> 0 Attachment
This may be of use , from the past
______[Copy below this line]_______
H="Calc Result Only"
;Larry Thomas <larryt@...>
;04/26/2003, 12:04:23 AM
;
;[begin long line]
^!Set %Equation%=^?{Enter your Equation=} ; %Decimal%=^?{Entter Decimal
Places (Limit is 17)=01_234567891011121314151617}
;[end long line]
;
^!SetClipboard ^$Calc(^%Equation%;^%Decimal%)$
^!Info ^$GetClipboard$
_____[Copy above this line]______
 right click over the clipbook 
 and choose "Add from Clipboard" 
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
______[Copy below this line]_______
H="Calc [Equation and Result]"
;Larry Thomas <larryt@...>
;04/26/2003, 12:05:37 AM
;
;[begin long line]
^!Set %Equation%=^?{Enter your Equation=} ; %Decimal%=^?{Entter Decimal
Places (Limit is 17)=01_234567891011121314151617}
;[end long line]
;
^!SetClipboard ^%Equation%= ^$Calc(^%Equation%;^%Decimal%)$
^!Info ^$GetClipboard$
_____[Copy above this line]______
 right click over the clipbook 
 and choose "Add from Clipboard" 
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
You can enter any number of decimal places to be displayed in the result
but the calc function is limited to a maximum of 17 places to the left of
the decimal. After that, it pads the result with zeroes. I would only
place acuracy reliance on the first 13 places. The last two decimal places
are subject to inaccuracies due to program limitations and problems
resulting from conversions between binary and decimal results.
Here are the examples that I did. If anyone reading this has better
information than this, please submit it here. If I am wrong in my
assumptions about any of the items below I would like to get the correct
information. Thank you.
EXAMPLES OF NOTETAB'S MATH OPERATOR AND FUNCTION USAGES:
========================================================
14 + 9 = 23
23  9 = 14
7.31 * 16.75 = 122.4425
155.29 / 29.49 = 5.26585283146829397
2 ^ 2 = 4 (Squared)
2 ^ (1/2) = 1.41421356237309515 (Square Root)
2 ^ 3 = 8 (Cubed)
2 ^ (1/3) = 1.25992104989487319 (Cube Root)
91 DIV 17 = 5 (Quotient)
91 MOD 17 = 6 (Remainder)
17 * 5 = 85
85 + 6 = 91
PI = 3.14159265358979312
COS(1) = 0.54030230586813976
SIN(1) = 0.84147098480789650
SINH(1) = 1.17520119364380138
COSH(1) = 1.54308063481524371
TAN(1) = 1.55740772465490229
ARCTAN(1.55740772465490229) = 1
COTAN(1) = 0.64209261593433076
EXP(1) = 2.71828182845904509 (2.71828182845904509 ^ 1)
LN(2.71828182845904509) = 1 (Log Natural  Base e)
LOG10(100) = 2 (Common Log  Base 10)
LOG2(16) = 4 (Log  Base 2)  (2 ^ 4 = 16)
LOGN(3;243) = 5 (Log  Base 3)  (3 ^ 5 = 243)
SQRT(25) = 5 (Square Root)  ( 25 ^ (1/2) = 5 )
SQR(5) = 25 (Squared)  (5 ^ 5 = 25)
POWER(7;4) = 2401 (7 ^ 4 = 2401)
POWER(2;3.55) = 11.71268556756500168 (2 ^ 3.55 = 11.71268556756500168)
INTPOWER(2;3.55) = 8 (2 ^ 3 = 8)  (only uses the integer
3)
MIN(53;92) = 53.00
MAX(53;92) = 92.00
MAX(7.512;INT(7.512)) = 7.512000
MIN(7.512;INT(7.512)) = 7.000000
MAX(7.512;INT(7.512)) = 7.000000
MIN(7.512;INT(7.512)) = 7.512000
MAX(3;4) = 3.00
MIN(3;4) = 4.00
ABS(14) = 14.00
ABS(14) = 14.00
ABS(0) = 0.00
TRUNC(1.59) = 1.00
TRUNC(7.12) = 7.00
INT(1.59) = 1.00
INT(7.12) = 7.00
ROUND(1.5955*100)/100 = 1.60 (Rounded up to the nearest cent)
ROUND(1.59112*100)/100 = 1.59 (Rounded down to the nearest cent)
ROUND(5285/100)*100 = 5300 (Rounded up to the nearest hundred)
ROUND(5249/100)*100 = 5200 (Rounded down to the nearest hundred)
CEIL rounds the number up from zero to the next integer if it has a
fractional part and it is a positive number. If it is a negative number,
it rounds the number up towards zero to the next integer.
It does not round it if the number does not have a decimal part.
CEIL(7.9112) = 8.0000
CEIL(7.9112) = 7.0000
CEIL(7.0000001) = 8.0000
CEIL(7.0000001) = 7.0000
CEIL(7) = 7.0000
CEIL(7) = 7.0000
FLOOR rounds the number down from zero to the next integer if it has a
fractional part and it is a positive number. If it is a negative number it
rounds the number down from zero to the next integer.
It makes no change if it does not have a decimal part.
FLOOR(7.9112) = 7.0000
FLOOR(7.9112) = 8.0000
FLOOR(7.0000001) = 7.0000
FLOOR(7.0000001) = 8.0000
FLOOR(7) = 7.0000
FLOOR(7) = 7.0000
You can use HEAV(X) to test for negative numbers.
It returns 0 (False) for a negative number and 1 (True) for all others.
HEAV(0) = 1
HEAV(7) = 1
HEAV(.0000001) = 1
HEAV(.00059) = 0
You can use SIGN(X) in a clip to control the sign of another number.
^!Set %Test%=^$Calc(SIGN(^%x%)*^%y%;0)$
If x is greater than zero Test will be equal to y.
If x is zero then Test will be zero.
If x is less than zero then Test will be equal to y with its sign reversed
+/.
^!Set %Test%=^$Calc(SIGN(^%x%)*ABS(^%y%);0)$
If x is greater than zero Test will be equal to y.
If x is zero then Test will be zero.
If x is less than zero Test will be equal to minus y.
SIGN(8) = 1
SIGN(0) = 0
SIGN(3) = 1
You can use ZERO(X) to test for a nonzero number.
Returns 0 (False) if the number is a zero and 1 (True) if it is not a zero.
ZERO(0) = 0
ZERO(9) = 1
ZERO(.0000000000000001) = 1
You can use LZERO(X) to test for a zero.
Returns 1(True) if the number is a zero and 0 (False) if it is not.
LZERO(0) = 1
LZERO(9) = 0
LZERO(.0000000000000001) = 0
These are random number generators for games and such.
RND(100)50 = 13.77 (Random number from 50 to +50)
RANDOM(1)+7 = 7.02 (Random number from 7 to 8)
(If you place these into a clip you will get a different random number
virtually every time you run it. The laws of chance and probability will
allow the possibility of the same number comming up on successive runs but
very rarely unless you limit the results to integers in a narrow range.
For example the second one only allows number from 7 to 8 as it is written.
If you set the decimal to 17 places, you will almost never get a repeat.
If you set the decimal to zero, you can only get 7 or 8 and it will repeat
regular and frequent basis.
===================================================================
THANKYOU DAVE M
 Original Message 
From: "Daniel Prince" <neutrino1200@...>
To: <notetab@yahoogroups.com>
Sent: Sunday, July 29, 2012 7:49 PM
Subject: [NTB] Number format for math expressions
> To: notetab@yahoogroups.com
> Subject: Number format for math expressions
> From: Daniel Prince <neutrino1200@...>
> Date: Sun, 29 Jul 2012 02:27:29 0700
>
> If I use the Calculate Expression function in NoteTab Standard 4.95
> or NoteTab Light 6.2 to raise two to the 119th power, I get this
> answer: 664613997892457936000000000000000000.
>
> I would VERY much prefer to get this answer: 6.646E+0035. I think
> that all answers that are over 100,000,000 should be in scientific
> notation.
>
> If I use the Calculate Expression function in NoteTab to raise two
> to the 120th power, I get this answer: 1.3E+0036. This answer has
> only two significant digits. I would like to have four significant
> digits.
>
> Is there a Calculate Expression function in NoteTab to convert
> numbers into scientific notation?
>
> I also think that all numbers greater than 10,000 should have commas
> in them for users in the US. (I think that in Europe they use
> periods instead of commas for this. Programs can tell which to use
> by looking at Windows settings.)
>
> If a new version has these improvements, I will definitely upgrade
> to the latest Pro version.
>
>
> 
>
> Fookes Software: http://www.fookes.com/
> NoteTab website: http://www.notetab.com/
> NoteTab Discussion Lists: http://www.notetab.com/groups.php
>
> ***
> Yahoo! Groups Links
>
>
> 0 Attachment
On Sun, Jul 29, 2012 at 6:22 AM, Dave <dmc43959@...> wrote:
> **
calculations and if the result is over 100,000,000, I want the answer to be
>
>
> ______[Copy below this line]_______
> H="Calc [Equation and Result]"
> ;Larry Thomas <larryt@...>
> ;04/26/2003, 12:05:37 AM
> ;
> ;[begin long line]
> ^!Set %Equation%=^?{Enter your Equation=} ; %Decimal%=^?{Entter Decimal
> Places (Limit is 17)=01_234567891011121314151617}
> ;[end long line]
> ;
> ^!SetClipboard ^%Equation%= ^$Calc(^%Equation%;^%Decimal%)$
> ^!Info ^$GetClipboard$
> _____[Copy above this line]______
>  right click over the clipbook 
>  and choose "Add from Clipboard" 
> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
>
> I think I did not adequately explain what I want. I want to be able to do
in scientific notation. 6.646E+0035 is scientific notation for
664613997892457936000000000000000000 with four significant digits. I also
want the answer to have four (4) significant digits. 6.646E+0035 has four
significant digits. 6.6E+0035 has two significant digits. When NoteTab
does put numbers into scientific notation, the numbers have only two
significant digits. For example: 2 ^ 120 = 1.3E+0036
Since NoteTab does not seem to be able to do this, I want a script that
would convert any number into scientific notation. For example it would
convert 664613997892457936000000000000000000 to 6.646E+0035. It would also
convert 45680000000 into 4.568E+0010.
[Nontext portions of this message have been removed] 0 Attachment
 In notetab@yahoogroups.com, "Dave" <dmc43959@...> wrote:>
Thanks, Dave! I can assure you that your "assumptions" are quite correct.
> Here are the examples that I did. If anyone reading this has
> better information than this, please submit it here. If I am
> wrong in my assumptions about any of the items below I would
> like to get the correct information. Thank you.
> EXAMPLES OF NOTETAB'S MATH OPERATOR AND FUNCTION USAGES:
> ========================================================
> 14 + 9 = 23
> 23  9 = 14
> 7.31 * 16.75 = 122.4425...
BTW, I noticed that  by pure chance  those lines are identical to the Help file (except that the order of lines was changed a bit).
Maybe there's no need to post about 110 lines from the Help file  I think it would just suffice to refer to 'Help > How to > Calculate in NoteTab'.
Regards,
Flo
Note: It has all been said  but not yet by everyone! 0 Attachment
I have a dictionary file that contains both English and German words.
I would like to separate those and then to run two separate spelling checks on my files, but I haven't found the tips that I need for that in Help. Can anyone assist me?
Bruce
[Nontext portions of this message have been removed] 0 Attachment
On 20120802 10:59, bruce.somers@... wrote:> I have a dictionary file that contains both English and German words.
Looks like you have to go to Tools  Spelling  Options.
>
> I would like to separate those and then to run two separate spelling
> checks on my files, but I haven't found the tips that I need for that
> in Help. Can anyone assist me?
>
> Bruce
Maybe you have both an English and a German dictionary selected?
If it really is a dictionary containing both (where did you get it?) you
will need to add the missing dictionaries and then turn one off  spell
check  then turn off it and turn the other on and check again.
Caution: this solution is untested, just based on the options I see.

Regards ... Alec (buralex@gmail & WinLiveMess  alec.m.burgess@skype) 0 Attachment
 In notetab@yahoogroups.com, bruce.somers@... wrote:>
IMHO, the basics of this task were explained with the answers to your topic "Rudimentary spelling checker", Basic Group, 07/19/2011, #22186 ff ? What are you still missing?
> I have a dictionary file that contains both English and German words.
> I would like to separate those and then to run two separate spelling
> checks on my files, but I haven't found the tips that I need for that
> in Help. Can anyone assist me?
>
> Bruce
Just make a copy of that UDT file, and remove English words from the original file resp. German words from the copy...
Regards,
Flo 0 Attachment
>Alec (buralex@gmail wrote:
I'm afraid I corrupted [the] dictionary myself by adding words carelessly. I hope that I can download the dictionaries anew and start over again.
>Looks like you have to go to Tools  Spelling  Options.
>Maybe you have both an English and a German dictionary selected?
>If it really is a dictionary containing both (where did you get it?) you
>will need to add the missing dictionaries and then turn one off  spell
>check  then turn off it and turn the other on and check again.
Is it possible to specify the desired dictionary at the moment when the spelling checker is invoked? I don't see it.
Someone recommended tinySpell. I have tinySpell loaded, but it doesn't show up in NoteTab. Is there a trick?
Bruce
[Nontext portions of this message have been removed] 0 Attachment
Hi Bruce,
On 03 Aug 12 16:52 bruce.somers@... said:>
TinySpell won't show up in NoteTab. It works in a very different way
> Someone recommended tinySpell. I have tinySpell loaded, but it
> doesn't show up in NoteTab. Is there a trick?
to most spell checkers.
It captures keystrokes made anywhere in the Windows environment rather
than checking the text entered in a particular window  as a result it
only checks as you type and can't be made to recheck a word once
you've started typing the next word.
You'll also need the paidfor version to get multiple languages.
While it's very good at what it does, I'd say it was only really
useful for programs that have no facility for installing a dedicated
spell checker.
Greg 0 Attachment
Hi Daniel,
The upcoming NoteTab 7.01 will use scientific notation for very large
numbers. However, as Don explained, integers cannot exceed this range:
9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

Regards,
Eric Fookes
http://www.fookes.com/
On 29/07/2012 11:49, Daniel Prince wrote:
> To: notetab@yahoogroups.com
> Subject: Number format for math expressions
> From: Daniel Prince <neutrino1200@...>
> Date: Sun, 29 Jul 2012 02:27:29 0700
>
> If I use the Calculate Expression function in NoteTab Standard 4.95
> or NoteTab Light 6.2 to raise two to the 119th power, I get this
> answer: 664613997892457936000000000000000000.
>
> I would VERY much prefer to get this answer: 6.646E+0035. I think
> that all answers that are over 100,000,000 should be in scientific
> notation.
>
> If I use the Calculate Expression function in NoteTab to raise two
> to the 120th power, I get this answer: 1.3E+0036. This answer has
> only two significant digits. I would like to have four significant
> digits.
>
> Is there a Calculate Expression function in NoteTab to convert
> numbers into scientific notation?
>
> I also think that all numbers greater than 10,000 should have commas
> in them for users in the US. (I think that in Europe they use
> periods instead of commas for this. Programs can tell which to use
> by looking at Windows settings.)
>
> If a new version has these improvements, I will definitely upgrade
> to the latest Pro version. 0 Attachment
Just ran across this post.
You should be aware, that the NoteTab Calc function has an option to specify the number of decimals, by default 2:
^$Calc(calculation;numDecimals)$
Hopefully Eric will retain this option, when Eric adds scientific notation.
I too am in favor of adding commagrouping to large numbers. Though a clip could do this fairly easily, using the steps:
leftpad the number to a string length divisible by 3,
split the string to length 3,
assign result to a newlinedelimited array,
replace the newlines with commas.
Cheers
Eb
 In notetab@yahoogroups.com, Daniel Prince <neutrino1200@...> wrote:
>
> To: notetab@yahoogroups.com
> Subject: Number format for math expressions
> From: Daniel Prince <neutrino1200@...>
> Date: Sun, 29 Jul 2012 02:27:29 0700
>
> ...
> If I use the Calculate Expression function in NoteTab to raise two
> to the 120th power, I get this answer: 1.3E+0036. This answer has
> only two significant digits. I would like to have four significant
> digits. 0 Attachment
Von: Eb <ebbtidalflats@...>
Betreff: [NTB] Re: Number format for math expressions
I too am in favor of adding commagrouping to large numbers. Though a clip could do this fairly easily, using the steps:

But please  only if it can be toggled on and off. Not everyone wants those commas.
Bruce
[Nontext portions of this message have been removed]
Your message has been successfully submitted and would be delivered to recipients shortly.