Hi i write because iam use classpad Lua, and when i call the pack "CAS" ,require("cas"), its possible to show in the screen a decimal number??For example when i introduce any thing similar to:z=0x=0repeatx=x+1z=getkey()until z==K_DOWNprint((60*x)/181008)y=((60*x)/181008)require("cas")print(cas.todms(y/3600))

when the calculation terminate print in the screen this

1.0060........--(any number, its an example)dms(0,0,31438527579/31250000000)

its possible to change this (31438527579/31250000000) into a decimal number, not fracctionary??

Other Question is the command ans its aviable in cplua??What are the programs or utilities for CPLUA??

Hi thank you for response my questions but my problem continue, when i write yours code:
print( cas.todms(y/3600)(0) )
appears on the screen only a decimal number, and not appears this
"dms(0,0,31438527579/31250000000)" i want to appear this but i only see a decimal number with no "dms(0,0,...)" zero (0) number its an examples because this are change if it needed

Hi Thank you everybody , this program are a little cronograph its display the time in seconds and display the time in dms(hours(degrees), minutes, seconds), its a great utility for me when I take an intervale of time, I hope that you copy, paste my source program and try this in yours classpads
and solve this problem, the dms().
z=0
x=0
print("Push to Start")
waitkey(K_UP)
clear()
print("Push [v] to Stop")