Hi,(adsbygoogle = window.adsbygoogle || []).push({});

I need to use floor function to write a program in Pascal, does pascal have it as a procedure/function in its library?

My compiler is Turbo Pascal for windows version 1.5, so it might be outdated. Somewhere on the internet I read that if I write 'uses math;' then I could use math functions that are in pascal's library, I did that but when I write floor or ceil the answer I get is 'Uknown identifier'.

Can I write the floor function in Pascal on my own or that would be too hard?

What should I do?

P.S: I'm a math major and I don't know much about programming like a CS student, I just need to write a bunch of programs in Pascal for my numerical analysis class.

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Pascal: How to use floor function in Pascal?

Loading...

Similar Threads for Pascal floor function | Date |
---|---|

C/++/# Rewriting C/ C++ code in Pascal | Dec 14, 2015 |

[Pascal] Counting letters in a row without arrays | Sep 15, 2013 |

How does the Fortran90 function floor not have a main type? | Oct 4, 2011 |

Fortran vs. Pascal | Oct 2, 2010 |

Does Computer Science include Pascal ? | Sep 18, 2008 |

**Physics Forums - The Fusion of Science and Community**