docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method vcvtns_u32_f32

    vcvtns_u32_f32(float)

    Floating-point Convert to Unsigned integer, rounding to nearest with ties to even (vector). This instruction converts a scalar or each element in a vector from a floating-point value to an unsigned integer value using the Round to Nearest rounding mode, and writes the result to the SIMD&FP destination register.A floating-point exception can be generated by this instruction. Depending on the settings in FPCR, the exception results in either a flag being set in FPSR, or a synchronous exception being generated. For more information, see Floating-point exception traps.Depending on the settings in the CPACR_EL1, CPTR_EL2, and CPTR_EL3 registers, and the Security state and Exception level in which the instruction is executed, an attempt to execute the instruction might be trapped.
    Equivalent instruction: FCVTNU Sd,Sn

    Declaration
    public static uint vcvtns_u32_f32(float a0)
    Parameters
    Type Name Description
    float a0

    Single a0

    Returns
    Type Description
    uint

    UInt32

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)