11
Answers

Convert code to C#

Farhan Shariff

Farhan Shariff

10y
1.3k
1
I want to change this code to C# code here val is a double value 


function round7(val)
define v1,v2
v1=val
if abs(v1)>0
v2=int(log(abs(v1)))
v1=v1/(10^v2)
v1=round(v1,6)
v1=v1*10^v2
end if
return v1
end function
Answers (11)