# How to calculate pennies in VB.Net?

Page 1 of 1

## 4 Replies - 2177 Views - Last Post: 15 April 2008 - 10:42 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'http://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=49043&amp;s=a2e31cf0e2dd48b271b1332c6f45b1e9&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 JAMES3

Reputation: 0
• Posts: 4
• Joined: 13-April 08

# How to calculate pennies in VB.Net?

Posted 13 April 2008 - 11:05 PM

HOW DO YOU WRITE CODE TO CALCULATE PENNIES
Is This A Good Question/Topic? 0

## Replies To: How to calculate pennies in VB.Net?

### #2 no2pencil

• Professor Snuggly Pants

Reputation: 6616
• Posts: 30,833
• Joined: 10-May 07

## Re: How to calculate pennies in VB.Net?

Posted 13 April 2008 - 11:06 PM

What would you like to calculate?

You'll have to be a tad bit more specific.

### #3 JAMES3

Reputation: 0
• Posts: 4
• Joined: 13-April 08

## Re: How to calculate pennies in VB.Net?

Posted 14 April 2008 - 04:24 AM

How do you use the Mod, modulus arithmetic

### #4 JasonMcAuley

Reputation: 4
• Posts: 144
• Joined: 10-April 08

## Re: How to calculate pennies in VB.Net?

Posted 14 April 2008 - 06:05 AM

Mod is an operator that will take two numbers and return the remainder.

5 mod 2 will return 1
5 mod 3 will return 2

etc, etc.

### #5 Counrtydawgg

Reputation: 0
• Posts: 1
• Joined: 15-April 08

## Re: How to calculate pennies in VB.Net?

Posted 15 April 2008 - 10:42 AM

JAMES3, on 13 Apr, 2008 - 11:05 PM, said:

HOW DO YOU WRITE CODE TO CALCULATE PENNIES

How is the program suppose to function?
Like enter a dollar amount and convert to pennies.

JP