copysign

copysign(x, y)

Return x such that it has the same sign as y

Examples

julia> copysign(4, -2) 
-4

See Also

User Contributed Notes

Add a Note

The format of note supported is markdown, use triple backtick to start and end a code block.

*Required Field
Details

Checking you are not a robot: