
'Light year in Kilometers


Function CommaFormat(double v) as string
int c,i,le
string s,t
s=str round v
le=len s
c=0
for i=1 to le
  t=mid(s,-i,1)+t
  c++
  if c=3 and i<>le then t=","+t : c=0
next
return t
end function

print "Light year in Kilometers: " CommaFormat 299792.458*3600*24*365.25




