Rounding -package:sbv
"Rounding strategy" - how to apply an AmountStyle's display precision
to a posting amount (and its cost, if any). Mainly used to customise
print's output, with --round=none|soft|hard|all.
Rounding rationals to significant digits and decimal places.
The
round function from the prelude returns an integer. The
standard librarys of C and C++ have round functions that return
floating point numbers. Rounding in this library takes and returns
Rationals and can round to a number of significant digits or a
number of decimal places.
Not on Stackage, so not searched.
Explicit floating point rounding mode wrappers
Rounding modes for IEEE-754 floating point operations.
A RoundingAdvice is interpreted by divisions and rounding operations
to specify the expected loss of precision and the rounding behaviour.
RoundingAdvice is a pair of a
RoundingMode and a target
precision of type
Maybe Natural. The precision defines
the number of digits after the decimal point. If
Nothing is
given as precision all decimal digits are to be preserved, that is
precision is not limited.
RoundingMode defines how to handle loss of precision in divisions or
explicit rounding.
Documentation not found, so not searched.
rounding variants floor, ceil and truncate for floating point operations +-*/√…
Rounding mode to use for floating-point conversions
Asks the widget that the input context is attached to to delete
characters around the cursor position by emitting the
imContextDeleteSurrounding signal.
In order to use this function, you should first call
imContextGetSurrounding to get the current context, and call
this function immediately afterwards to make sure that you know what
you are deleting. You should also account for the fact that even if
the signal was handled, the input context might not have deleted all
the characters that were requested to be deleted.
This function is used by an input method that wants to make
substitutions in the existing text in response to new input. It is not
useful for applications.
This signal is emitted when the input method needs to delete all or
part of the context surrounding the cursor. Parameters:
offset - the character offset from the cursor position of the
text to be deleted. A negative value indicates a position before the
cursor.
n_chars - the number of characters to be deleted.
Returns True if the signal was handled.
Retrieves context around the insertion point. Input methods typically
want context in order to constrain input text based on existing text;
this is important for languages such as Thai where only some sequences
of characters are allowed.
This function is implemented by emitting the
imContextRetrieveSurrounding signal on the input method; in
response to this signal, a widget should provide as much context as is
available, up to an entire paragraph, by calling
imContextSetSurrounding. Note that there is no obligation for a
widget to respond to the
imContextRetrieveSurrounding signal,
so input methods must be prepared to function without context.
This signal is emitted when the input method requires the context
surrounding the cursor. The callback should set the input method
surrounding context by calling
imContextSetSurrounding.
Returns True if the signal was handled.
Sets surrounding context around the insertion point and preedit
string. This function is expected to be called in response to the
imContextRetrieveSurrounding signal, and will likely have no
effect if called at other times.
Configure whether the table draws a border on its exterior.
The
deleteSurrounding signal is emitted when the input method
needs to delete all or part of the context surrounding the cursor.
The
retrieveSurrounding signal is emitted when the input method
requires the context surrounding the cursor.
The callback should set the input method surrounding context by
calling the
iMContextSetSurrounding method.
Connect a signal handler for the
deleteSurrounding signal, to
be run after the default handler. When
overloading is enabled,
this is equivalent to
after iMContext #deleteSurrounding callback
By default the object invoking the signal is not passed to the
callback. If you need to access it, you can use the implit
?self parameter. Note that this requires activating the
ImplicitParams GHC extension.
Connect a signal handler for the
retrieveSurrounding signal, to
be run after the default handler. When
overloading is enabled,
this is equivalent to
after iMContext #retrieveSurrounding callback
By default the object invoking the signal is not passed to the
callback. If you need to access it, you can use the implit
?self parameter. Note that this requires activating the
ImplicitParams GHC extension.
Asks the widget that the input context is attached to delete
characters around the cursor position by emitting the
::delete_surrounding signal.
Note that
offset and
nChars are in
characters not in bytes which differs from the usage other places in
GtkIMContext.
In order to use this function, you should first call
iMContextGetSurrounding to get the current context, and call
this function immediately afterwards to make sure that you know what
you are deleting. You should also account for the fact that even if
the signal was handled, the input context might not have deleted all
the characters that were requested to be deleted.
This function is used by an input method that wants to make
substitutions in the existing text in response to new input. It is not
useful for applications.
Retrieves context around the insertion point.
Input methods typically want context in order to constrain input text
based on existing text; this is important for languages such as Thai
where only some sequences of characters are allowed.
This function is implemented by emitting the
IMContext::retrieveSurrounding signal on the input method; in
response to this signal, a widget should provide as much context as is
available, up to an entire paragraph, by calling
iMContextSetSurroundingWithSelection.
Note that there is no obligation for a widget to respond to the
::retrieve-surrounding signal, so input methods must be
prepared to function without context.
Since: 4.2