# Difference between revisions of "BitOnInteger and BitOrInteger (Float functions)"

Jump to navigation
Jump to search

m (→Examples) |
m (→Syntax terms) |
||

Line 9: | Line 9: | ||

<table class="syntaxTable"> | <table class="syntaxTable"> | ||

<tr><th>%result</th><td>A variable to receive the result of ORing together the bits of <var class="term">float</var> and <var class="term">orBits</var>.</td></tr> | <tr><th>%result</th><td>A variable to receive the result of ORing together the bits of <var class="term">float</var> and <var class="term">orBits</var>.</td></tr> | ||

− | <tr><th>float</th><td>One of the | + | <tr><th>float</th><td>One of the integers to be ORed.</td></tr> |

− | <tr><th>orBits</th><td>The other | + | <tr><th>onBits orBits</th><td>The other integer to be ORed.</td></tr> |

</table> | </table> |

## Revision as of 20:56, 29 September 2012

Bitwise Or of integers (Float class)

[Introduced in `Sirius Mods` 7.9]

These intrinsic functions perform a logical OR of the bits of two integers, that is, output bits are "on" if they are "on" in either of the inputs.

## Syntax

%result = float:BitOnInteger( onBits)

%result = float:BitOrInteger( orBits)

### Syntax terms

%result | A variable to receive the result of ORing together the bits of float and orBits. |
---|---|

float | One of the integers to be ORed. |

onBits orBits | The other integer to be ORed. |

## Usage notes

- The
`BitOrInteger`function is available as of`Sirius Mods`Version 7.9

## Examples

- The following statement rounds an integer up to the nearest odd integer:
%y = %x:bitOnInteger(1)