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 | Science Articles, Homework Help, Discussion**

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?

**Physics Forums | Science Articles, Homework Help, Discussion**