[chuck-users] typecasting

Jeremy Hunt jrmy at berkeley.edu
Mon Mar 10 16:13:14 EDT 2008


much better thanks!

On Mar 10, 2008, at 12:50 PM, Stephen Sinclair wrote:

> On Mon, Mar 10, 2008 at 3:39 PM, Jeremy Hunt <Jrmy at berkeley.edu>  
> wrote:
>> Hi all,
>>
>>  is there a way to typecast dur such that I could do something  
>> like this?
>>
>>  now => float t;
>>
>>  Or is there a work around?  Thanks in advance.
>
>
> But it's not clear from your example, do you want time in seconds,  
> or ms?
> (Which is exactly why you can't do the above...)
>
> Try:
>
> now/1::second => float time_in_seconds;
> now/1::ms => float time_in_ms;
>
>
> Steve
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users



More information about the chuck-users mailing list