Topic: Numeric evaluation in text buffer (1 of 1), Read 48 times
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Wednesday, April 18, 2001 05:56 AM

A little tool if one often has to evaluate numeric expressions in the text buffer.

Assign the following macro (in one line) to a key of your choice:

if(BB != -1){
Reg_Copy_Block(99, BB, BE)
Ins_Text(" = ")
Num_Ins(Num_Eval_Reg(99), LEFT+NOCR)

Then mark-block the expression and press the above key.
VEDIT then will evaluate the marked expression and write the result into the buffer.