ftofix(3alleg4) Allegro manual ftofix(3alleg4)NAME
ftofix - Converts a floating point value to fixed point. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
fixed ftofix(double x);
DESCRIPTION
Converts a floating point value to fixed point. Unlike itofix(), this function clamps values which could overflow the type conversion, set-
ting `errno' to ERANGE in the process if this happens. Example:
fixed number;
number = itofix(-40000);
ASSERT(fixfloor(number) == -32768);
number = itofix(64000);
ASSERT(fixfloor(number) == 32767);
ASSERT(!errno); /* This will fail. */
RETURN VALUE
Returns the value of the floating point value converted to fixed point clamping overflows (and setting `errno').
SEE ALSO fixtof(3alleg4), itofix(3alleg4), fixtoi(3alleg4), exfixed(3alleg4), exrotscl(3alleg4), exspline(3alleg4), exupdate(3alleg4)Allegro version 4.4.2 ftofix(3alleg4)
Check Out this Related Man Page
ftofix(3alleg4) Allegro manual ftofix(3alleg4)NAME
ftofix - Converts a floating point value to fixed point. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
fixed ftofix(double x);
DESCRIPTION
Converts a floating point value to fixed point. Unlike itofix(), this function clamps values which could overflow the type conversion, set-
ting `errno' to ERANGE in the process if this happens. Example:
fixed number;
number = itofix(-40000);
ASSERT(fixfloor(number) == -32768);
number = itofix(64000);
ASSERT(fixfloor(number) == 32767);
ASSERT(!errno); /* This will fail. */
RETURN VALUE
Returns the value of the floating point value converted to fixed point clamping overflows (and setting `errno').
SEE ALSO fixtof(3alleg4), itofix(3alleg4), fixtoi(3alleg4), exfixed(3alleg4), exrotscl(3alleg4), exspline(3alleg4), exupdate(3alleg4)Allegro version 4.4.2 ftofix(3alleg4)
Hi,
I am writing a small 'C' program to add very large floating point numbers. Now the program should be capable of adding the maximum floating point number that is possible on Sun Solaris machine.
Can some let me know whether there is any extra logic that needs to applied for making sure... (2 Replies)
I couldn't find any hints on how floating and fixed licenses should behave on AIX 4.3
The problem we got here is this:
there are 85 fixed user licenses.
We ran out of them.
I increased the number fixed licenses to 150.
Since it requires a reboot I added 50 floating licenses with smit. (can't... (0 Replies)
Hello everyone,
I have a question, that are the following ways of pointer intialization same ?
ClassA *point;
point = 0;
point = new ClassA;
Thanks a load in advance!!
Regards, (10 Replies)