aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-Float.copysign.3
blob: 2b75c782b49c7a4ef901286c1b30cf5a7f23dcd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
'\" t
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
.TH Float.copysign 3 2025-12-11 "Tomo man-pages"
.SH NAME
Float.copysign \- copy a number's sign
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Float.copysign\ :\ func(x:\ Float,\ y:\ Float\ ->\ Float)
.fi
.SH DESCRIPTION
Copies the sign of one number to another.


.SH ARGUMENTS

.TS
allbox;
lb lb lbx
l l l.
Name	Type	Description
x	Float	The number whose magnitude will be copied. 
y	Float	The number whose sign will be copied. 
.TE
.SH RETURN
A number with the magnitude of `x` and the sign of `y`.

.SH EXAMPLES
.EX
assert (3.0).copysign(-1) == -3
.EE
.SH SEE ALSO
.BR Tomo-Float (3)