(36 lines)
1 '\" t2 .\" Copyright (c) 2025 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Num.copysign 3 2025-11-29 "Tomo man-pages"6 .SH NAME7 Num.copysign \- copy a number's sign8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Num.copysign\ :\ func(x:\ Num,\ y:\ Num\ ->\ Num)13 .fi14 .SH DESCRIPTION15 Copies the sign of one number to another.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx23 l l l.24 Name Type Description25 x Num The number whose magnitude will be copied.26 y Num The number whose sign will be copied.27 .TE28 .SH RETURN29 A number with the magnitude of `x` and the sign of `y`.31 .SH EXAMPLES32 .EX33 assert (3.0).copysign(-1) == -334 .EE35 .SH SEE ALSO36 .BR Tomo-Num (3)