#import "Inverse.h"

@implementation Inverse

- (void)Calc:(id)sender
{
    // Decalare Variables	
    float price, catax, total;

    // Assign the number in the field to the variable
    total = [Total floatValue];

    // Do a little calculation
    price = (total/1.0825);
    catax = (price*.0825);

    // Display result in the panel
    [CATax setFloatValue:catax];
    [Price setFloatValue:price];

    // Bring the cusor back to the Price field and select it.
    [Total selectText:self];
}

- (void)awakeFromNib
{
// This is one of the last methods executed after the nib file is loaded.
// This is the Best way to initialize an object and jump into
// a method after the nib file was loaded.


    // Brings the cursor to the field and selects text
    [Total selectText:self];
}



@end
