Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2023-01

aligned?

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

Hi,

What does the fpc built-in function aligned?

For example in FloatToStrFIntl:

  Str(Double(Extended(Aligned(Value))):precision+7, Result);

Mattias

Florian Klämpfl
to Mattias Gaertner
Show quoted text 9 lines
Am 30.01.2023 um 14:03 schrieb Mattias Gaertner via fpc-pascal : Hi, What does the fpc built-in function aligned? For example in FloatToStrFIntl: Str(Double(Extended(Aligned(Value))):precision+7, Result);

It tells the compiler that the argument is properly aligned according to its type.

Mattias Gaertner
to Florian Klämpfl
Show quoted text 13 lines
> Am 30.01.2023 um 14:03 schrieb Mattias Gaertner via fpc-pascal > : > > Hi, > > What does the fpc built-in function aligned? > > For example in FloatToStrFIntl: > > Str(Double(Extended(Aligned(Value))):precision+7, Result); It tells the compiler that the argument is properly aligned according to its type.

Thanks!

Mattias