This topic is locked

Integer and decimal places

12/26/2007 4:16:20 AM
ASPRunnerPro General questions
R
rackett author

Hi Sergey,
Sorry but I can not fathom that out. I have the same problem. I am displaying my dvd collection and have a key called id. This is a number. 5.1 displays it as 1.00, 2.00, 3.00 etc. I want this to display as 1,2,3 etc
How can I change this format so that it is a whole integer only please?
Thanks

Marc

Sergey Kornilov admin 12/26/2007

Marc,
set "View as" type to Custom and use the following code:

strValue = FormatNumber(strValue,0)
R
rackett author 1/1/2008

Thanks Sergey, I now have the format I want <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=24536&image=1&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' />