Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

trailingZeroes()

Purpose

Find the number of trailing zeroes in a binary number

Description

Find the number of trailing zeroes in a 64 bit binary number

Syntax

result = trailingZeroes( value )

Arguments

value The number to find the number of trailing zeroes in

result The number of trailing zeroes in value

Example

for i = 0 to 16 loop
    j = pow( 2, i )
    printAt( 0, i, int(j), " ", trailingZeroes( j ) )
    update()
repeat
sleep( 3 )

Associated Commands

bitCount(), bitGet(), bitSet(), bitFieldExtract(), bitFieldInsert(), leadingZeroes()

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.