int() in mod file

The basics of how to develop, test, and use models.
Post Reply
magpie
Posts: 23
Joined: Mon Jan 29, 2007 4:13 pm

int() in mod file

Post 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.
ted
Site Admin
Posts: 5786
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: int() in mod file

Post 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.
magpie
Posts: 23
Joined: Mon Jan 29, 2007 4:13 pm

Re: int() in mod file

Post 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.
ted
Site Admin
Posts: 5786
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: int() in mod file

Post 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
magpie
Posts: 23
Joined: Mon Jan 29, 2007 4:13 pm

Re: int() in mod file

Post 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
ted
Site Admin
Posts: 5786
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: int() in mod file

Post 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.
magpie
Posts: 23
Joined: Mon Jan 29, 2007 4:13 pm

Re: int() in mod file

Post by magpie »

It works well. Thank you Ted.
Post Reply