Author Topic: v30 calculator  (Read 3016 times)

joecar

  • Senior Community Member
  • Posts: 510
  • Hero Points: 9
  • engineer/gearhead
Re: v30 calculator
« Reply #15 on: November 14, 2025, 08:13:58 PM »
can't post screenshot...!?!?!?

I don't see this:
Code: [Select]
Tools>Math>When Type '=' Copy Result to Clipboard

I see this:
Code: [Select]
Tools>Math>When Type '=' number of lines before current line to scan for variables

SlickEdit Pro 2025 (v30.0.0.0 64-bit Qt5)


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 7111
  • Hero Points: 542
Re: v30 calculator
« Reply #16 on: November 14, 2025, 08:54:09 PM »
Not sure what's going on.

Try a default config:

Code: [Select]
vs +new -sc c:\temp\newconfig

joecar

  • Senior Community Member
  • Posts: 510
  • Hero Points: 9
  • engineer/gearhead
Re: v30 calculator
« Reply #17 on: November 15, 2025, 04:19:19 AM »
Not sure what's going on.

Try a default config:
Code: [Select]
vs +new -sc c:\temp\newconfig

I did that ^ and I see the same as my previous post.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 7111
  • Hero Points: 542
Re: v30 calculator
« Reply #18 on: November 15, 2025, 01:48:46 PM »
Here's what I get with a default config on Windows.
« Last Edit: November 15, 2025, 01:50:45 PM by Clark »

joecar

  • Senior Community Member
  • Posts: 510
  • Hero Points: 9
  • engineer/gearhead
Re: v30 calculator
« Reply #19 on: November 18, 2025, 04:39:22 PM »
Here's what I get with a default config on Windows.
If there's a screenshot in your post, I don't see it.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 7111
  • Hero Points: 542
Re: v30 calculator
« Reply #20 on: November 18, 2025, 05:22:54 PM »
There is a screen shot. I guess it can't be seen by anyone but me.

It's a picture of the Tools>Math submenu. Do you have a Math submenu under the Tools menu? What items are displayed there?

Here's the Slick-C code for the Math submenu items:
Code: [Select]
         "Update All Results","math_update_all","","help math menu","Updates all math results in current file";
         "Update Results in Selection","math_update_in_selection","","help math menu","Updates math results in selection";
         "Update Results from Cursor","math_update_from_cursor","","help math menu","Updates math results starting from the cursor and continuing for the rest of the file";
         "Update Result for Current Line","math_update_current_line","","help math menu","Update math result for equation ('=') before cursor. Uses equation ('=') after cursor is used if not found.";
         "-","","","","";
         "Update Results While Typing","math_while_typing_toggle","","help math menu","Toggles updating math results while typing";
         "-","","","","";
         "When Type '=' Insert Result","math_on_equal_insert_result_toggle","","help math menu","Toggles inserting math results when '=' is typed";
         "When Type '=' Copy Result to Clipboard","math_on_equal_copy_to_clipboard_toggle","","help math menu","Toggles copying math result to clipboard when '=' is typed";
         "When Type '=' Show Errors","math_on_equal_show_errors_toggle","","help math menu","Toggles showing line error markers when '=' is typed";
         "-","","","","";
         "Color Variables","math_color_variables_toggle","","help math menu","Toggles whether variables are colored";
         "Color Results","math_color_results_toggle","","help math menu","Toggles whether results are colored";
         "Append Variable Results (=>result)","math_append_var_results_toggle","","help math menu","Toggles appending variables results for variables assigned a non-constant expression";
         "Implied Multiply (3y)","math_implied_multiply_toggle","","help math menu","Toggles implied multiply. When on, 3y is intepreted as 3*y. This option greatly slows down computation";
         "Math in Comments","math_in_comments_toggle","","help math menu","Toggles math in comments. Restrict math operations to comments.";

joecar

  • Senior Community Member
  • Posts: 510
  • Hero Points: 9
  • engineer/gearhead
Re: v30 calculator
« Reply #21 on: November 18, 2025, 06:53:08 PM »
Under the Tools->Math I see that submenu.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 7111
  • Hero Points: 542
Re: v30 calculator
« Reply #22 on: November 18, 2025, 11:00:26 PM »
Put the following in a .txt file

Code: [Select]
SilverOunces=10 troy ounces + 1000 grams
SilverCost= $300 + $1000
SilverCost/SilverOunces=

SilverSpotPrice=$50/troy ounce

SilverValue=SilverOunces * SilverSpotPrice
SilverProfit=SilverValue - SilverCost
SilverPercentProfit=(SilverValue-SilverCost)/SilverCost

Then turn on Tools>Math>"Update Results While Typing" or run "Tools>Math>Update All Results"

Very convenient if you want to put some math equations in a file.

joecar

  • Senior Community Member
  • Posts: 510
  • Hero Points: 9
  • engineer/gearhead
Re: v30 calculator
« Reply #23 on: Today at 12:10:53 AM »
I see, very convenient... ;) ;) ...Thanks.