[#BloombergLP-bdlar-EnumRef-fromInt] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/EnumRef.adoc[EnumRef]::fromInt :relfileprefix: ../../../ :mrdocs: Assign the enumerator value matching the specified `number`. Return 0 on success, and a non‐zero value with no effect on the object if `number` does not match any enumerator. == Synopsis Declared in `<bdlar_enumref.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int fromInt(int number) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#