Farhan Shariff

Farhan Shariff

  • NA
  • 933
  • 237.9k

Convert code to C#

Jul 8 2014 5:53 AM
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)