Page 1 of 1

int() in mod file

Posted: Fri Oct 07, 2011 11:06 am
by magpie
Hi,
I might be missing something important, but int() function did not work in mod file, actually made an compilation error.
Is there anyone who knows how to use int() in mod file or alternative functions to cast the double to integer?

Thanks a lot.

Re: int() in mod file

Posted: Fri Oct 07, 2011 11:53 pm
by ted
Copy this document to your machine
http://www.neuron.yale.edu/ftp/ted/neur ... opman.html
and examine it with a www browser to find a list of the C math library functions available to NMODL without having to resort to VERBATIM blocks.

Re: int() in mod file

Posted: Mon Oct 10, 2011 11:13 am
by magpie
Thanks so much Ted,

I have tried to access to the file (scopman.html) several times but I have got below message from your sever.
" You don't have permission to access /ftp/ted/neuron/scop/scopman.html on this server."

Can you check this issue out for me?

Thank you.

Re: int() in mod file

Posted: Tue Oct 11, 2011 4:12 pm
by ted
Download that file to your machine, then examine it on your machine.
To download it, I simply right click on the link, then select
"Save link as"
from the popup menu, but I'm using Firefox. What you need to do will depend on what browser you're using.

--Ted

Re: int() in mod file

Posted: Tue Oct 11, 2011 8:34 pm
by magpie
I am so sorry, but I am not quite sure why it can not be downloaded and the same error message is repeated even in using Firefox. If you do not mind could you please send me the file via email. My email address is "h-kim@northwestern.edu". Thank you so much.

Hojeong

Re: int() in mod file

Posted: Tue Oct 11, 2011 9:12 pm
by ted
Ah! A file permissions problem. Sorry about that; fixed now. You should be able to read the document online and download it to you PC without difficulty.

Re: int() in mod file

Posted: Tue Oct 11, 2011 10:12 pm
by magpie
It works well. Thank you Ted.