Skip to content

Instantly share code, notes, and snippets.

@sztokbant
sztokbant / nfpcalc.m
Created March 13, 2012 14:06
Starting port of SorteioNF for iPhone
#import <objc/Object.h>
#import <stdio.h>
#import <time.h>
@interface NFPCalc: Object
{
}
- (long)calculateForTodayWithIndividualValue: (double) individualValue andNumberOfPeople: (int) numberOfPeople;
- (long)calculateForDay: (int) dayOfMonth andIndividualValue: (double) individualValue andNumberOfPeople: (int) n;