Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fixtof(3alleg4) [netbsd man page]

fixtof(3alleg4) 						  Allegro manual						   fixtof(3alleg4)

NAME
fixtof - Converts a fixed point to floating point. Allegro game programming library. SYNOPSIS
#include <allegro.h> double fixtof(fixed x); DESCRIPTION
Converts fixed point to floating point. Example: float result; /* This will put 33.33333 into `result'. */ result = fixtof(itofix(100) / 3); /* This will put 16.66666 into `result'. */ result = fixtof(itofix(100) / 6); SEE ALSO
ftofix(3alleg4), itofix(3alleg4), fixtoi(3alleg4), exfixed(3alleg4), exspline(3alleg4), exstars(3alleg4) Allegro version 4.4.2 fixtof(3alleg4)
Man Page

We Also Found This Discussion For You

1. OS X (Apple)

A fixed point basic calculator for DASH.

This exercise has taught me a lot about POSIX, dash and their limits. I decided to experiment with fixed point arithmetic using dash as the shell. If you want to test it then change the shebang to your directory where 'dash' is or use 'bash' instead. This was one of the hardest things I have... (21 Replies)
Discussion started by: wisecracker
21 Replies