money

Best practice to represent Money (value + currency) in Grails

Hello, I'm not much familiar to Java Currency type, and how it being used in Grails. Though, I'm yet to use it, I saw a tag <g:currencySelect> to use in the views. So, how do I represent it in the domain class. class Money { BigDecimal value Currency currency .... } or is there a better sol, which compares diff money objects, forma...

ASP .NET: SQL Server Money Type and .NET Currency Type

MS SQL Server's Money Data Type seems to accept a well formatted currency value with no problem (example: $52,334.50) From my research MS SQL Sever just ignores the "$" and "," characters. ASP .NET has a parameter object that has a Type/DbType property and Currency is an available option to set as a value. However, when I set the paramet...

How to format a money value from an ISOCurrencySymbol in C#

I have created a Money class to save money values in different currencies. The class uses 3 letter ISO symbols to store currency types: public class Money { public decimal Amount { get; set; } public string Currency { get; set; } } Is there a way in C# to use this information, say 100.00 USD, and format it as "$100.00"? Only w...

Objective C display money format like Sensible Soccer

I'm wanting to display money like SWOS (or Sensible World of Soccer) used to. IE: Instead of: $10,000,000+ you got $10m, 10.5m, etc. Instead of: $1,000,000 you got $1m Instead of: $1,500,000 you got $1.5m It also worked for both large and smaller figures, say; 1k, 1.25k, 0.75k, 0.25k, etc. I'm wondering...

How to reconcile my support of open-source software and need to feed and house myself?

I have a bit of a dilemma and wanted to get some other developers' opinions on it and maybe some guidance. So I have created a 2D game for Android from the ground up, learning and re factoring as I went along. I did it for the experience, and have been proud of the results. I released it for free as ad supported with AdMob not really ex...

how to earn money from my blog site

Hi All, I am going to deploy my Blog site & now I am looking forward to earning money from that, I am new to Google adsense, so I have few questions. 1: Is there any other programs like google adsense which place add on my website? 2: I have heard that if I am using any third party control on my website that google will not allow me to...

How was non-decimal money represented in software?

A lot of the answers to the questions about the accuracy of float and double recommend the use of decimal for monetary amounts. This works because today all currencies are decimal except MGA and MRO, and those have subunits of 1/5 so are still decimal-friendly. But what about the software used in U.S. stock markets when prices were in ...

Calculating interest in objective c?

What is a simple piece of code to read a stored number, calculate interest on the stored value, say $100, at a rate of %10. Then I store the new value in place of the old one. I was working towards this: NSNumber *bankTemp = [[NSNumber alloc] initWithInt:[[NSUserDefaults standardUserDefaults] integerForKey:@"bank"]]; bankTemp = bankTe...

Convert Money to Text in PHP

I need to convert say $89.50 to Eighty-Nine Dollars and Fifty Cents using PHP. Is there a function I'm missing somewhere? ...

PHP - string to money conversion

Hi, I'm trying to convert a string into money format using this function, and trying to create something like this : 350000000 to 350.000.000,00 All my attempts failed so far, being this the last one : setlocale(LC_MONETARY, 'pt_PT.UTF-8@euro'); echo money_format('%.2n', $preco); Any help would be appreciated. Cheers! ...

How can I bill within an application

I've been programming for years, and I've also done a few professional programming projects. I recently had a friend ask about creating an e-commerce site, but I had to turn her down because I had never worked on a web application that can bill. I also might need to write a subscription-based web service in the future. My question is, ho...

How Much Should I Charge to Build an iPhone App AND Release Copyright

Does anyone have any thoughts on how much to charge for release copyright on an iPhone app I'm building for a client? I have a reasonable idea of how much I should charge for the app development, but I never release copyright on anything I do for clients. Thanks! ...

Best practices for doing accounting in Python

I am writing a web2py application that requires summing dollar amounts without losing precision. I realize I need to use Decimals for this, but I've found myself having to wrap every single number I get from the database with: Decimal(str(myval)) Before I go crazy adding that to all of my code, is there a better way? I'm new to Pytho...

Convert basic script to Objective C (money formatting)

Hello, I've got this basic like script that I need to convert to objective c, it turns big units of money into shortened versions (ie: 1.2m, etc), I've got most of the conversion done, but the biggest problem I'm having is right at the end. The original basic code is: ; Basic Code Function ShortCash$(BigNumber) out$="" ; First, ...

Round money to nearest 10 dollars in Javascript

Hi all, How can I round a decimal number in Javascript to the nearest 10? My math is pretty rubbish today, it could be the 2 hour sleep :/ Some sample cases $2823.66 = $2820 $142.11 = $140 $9.49 = $10 I understand I probably need a combination of Math.round/floor but I can't seem to get expected result. Any help/pointers appreciat...

How authentic is PTC(paid to click) websites ?

I know this is not a directly an SO question but as i am planning to cut my programming hours and maintain my income , as i have exams coming and need more attention to my studies i heard few people claiming these sites as fraud and some stating that it really brings out the cash .How genuine are these paybacks ? Expect answers from ex...

Changing project requirements - should client pay

Not sure where to put this but a site filled with working programmers is a good bet. I built a website for a client, that included (on the home page) a fancy jQuery image slider with controls. This was specified in the original project scope. I also implemented a simple jQuery slider on one of the inner pages. Now that the site is up f...

How to compute compounded interest rate ?

I have the following scenario where i invest variable amount of principal every month, Investment Month $300 Jan $200 Feb $100 Mar and i get a return of, Returns Month $1000 Apr How do i calculate the nominal annual interest rate if the amount is compounded monthly? ...

Algorithm for issuance of delivery

I need to get inherited class of DispenseAlgorithm. It must realize algorithm for calculate issuance of delivery. The algorithm must provide even nominals consumption . public abstract class DispenseAlgorithm { public abstract Dictionary<int, int> CalculateDispense(CassetteData[] data, int summ); } public class CassetteData { ...

How much to charge for mobile apps? Why is $0.99 a bad idea?

Hi. I'm thinking about making some apps for phones. For the sake of this discussion say it's a generic Yet Another Zombie Shooter game, for Android, iPhone, Blackberry, or OVI Market. It is a kind of casual game that the customer would fire up while in boring class in school or waiting for a bus to come in. Let's also say that the game b...