meaning of f in fprintf function

47 visualizaciones (últimos 30 días)
Spaceman
Spaceman el 20 de Mzo. de 2024
Comentada: Spaceman el 21 de Mzo. de 2024
So this is just a general question, as I familiarize myself with the fprintf and all other glorious functions...
When I use the /f or form feed as it's called, what's that actually doing? What does 'form feed' mean?
Also does anyone know why it's 'fprintf' and not just 'print'?
Thanks in advance!

Respuesta aceptada

Chunru
Chunru el 20 de Mzo. de 2024
In old days, the command \f is used to make a printer to move to beginning of next pages.
fprintf or print or printf are used by different programming languages for the similar (but may be different) purpose. The begining "f" means file print. The ending "f" means the formatted print.
  8 comentarios
Stephen23
Stephen23 el 20 de Mzo. de 2024
Editada: Stephen23 el 20 de Mzo. de 2024
"I wonder why pi is a special case here"
PI is not a special case here.
PI is just a convenient binary floating point value that I used to demonstrate the effect of different formatting operators with. Forget about PI, you can pick any other binary floating point values with fractional part.
Spaceman
Spaceman el 21 de Mzo. de 2024
What would be another example of another binary floating point value? i^i or 0.20788?

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Productos


Versión

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by