PLN amount in words (kwota słownie)  1.6
Functions
plntowords.c File Reference

PLN numerical amount in words. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <math.h>
#include "plntowords.h"
Include dependency graph for plntowords.c:

Go to the source code of this file.

Functions

char * pln_amount_txt_double (double d_price)
 Function converts price (in PLN) given as a floating point number to a word version. More...
 
char * pln_amount_txt (uint64_t ui_inprice)
 Function converts price (in PLN) given as an integer number to a word version. More...
 

Detailed Description

PLN numerical amount in words.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Date
February 21, 2020
Version
1.6
Author
Michał Bąbik micha.nosp@m.lb19.nosp@m.81@o2.nosp@m..pl

Definition in file plntowords.c.

Function Documentation

◆ pln_amount_txt_double()

char * pln_amount_txt_double ( double  d_price)

Function converts price (in PLN) given as a floating point number to a word version.

Parameters
[in]d_pricePrice in double format eg. 100.00
Returns
Newly created string with price in words. It should be freed after use.

Definition at line 203 of file plntowords.c.

◆ pln_amount_txt()

char * pln_amount_txt ( uint64_t  ui_inprice)

Function converts price (in PLN) given as an integer number to a word version.

Parameters
[in]ui_inpricePrice in integer format. It should be multiplied by 100 eg. price 100.00 should be passed as 10000
Returns
Newly created string with price in words. It should be freed after use.

Definition at line 218 of file plntowords.c.