威纶通屏幕数据需要用科学计数法表示出来
列如:1200需要用1.2*10^3
按照以下操作步骤
①新建字符输出框
②新建一个数值输入框
③写宏指令如下
//******************下面是自定义函数*****************************
sub Exchange21 (float x,int y)//x表示数据 y表示地址
int a=0
int b=0 //循环用
int sum=0 //计算多少个0
char data[9]="" //存最终数据
char link[4]="*10^" //中间连接符号
char ten[1]="" //存0的个数
char temp[1]=" "
char temp1[1]="0"
float judge=0
float res=0
judge=x
//开始数据处理
if judge>0 then //判断数据是否为0
for a=0 to 10 step 1