I can find online documentation for this, including several useful functions like sqrt()
, but the module itself seems to have disappeared (I’m using Swan Lake update 5). Searching Google didn’t turn up anything interesting.
Any suggestions?
It was deprecated and removed in Swan Lake; here are relevant and related issues.
opened 12:11PM - 03 Aug 20 UTC
closed 12:37PM - 03 Feb 21 UTC
**Description:**
This is a part of revisiting the Standard Library module for S… wan Lake release.
- [ ] Find alternatives to current APIs
- [ ] Deprecate the module
- [ ] Remove the module
opened 08:23AM - 22 Jul 20 UTC
closed 04:31PM - 20 Feb 21 UTC
Type/Task
**Description:**
Some math module APIs are already supported in lang.float modu… le. Therefore math module APIs need to be depricated.
**Steps to reproduce:**
Run the following sample.
```
import ballerina/lang.'float as floats;
import ballerina/io;
import ballerina/math;
public function main() {
float x = floats:sqrt(123.456);
float y = math:sqrt(123.456);
io:println(x);
io:println(y);
}
```
x and y output are the same.
**Affected Versions:**
slp2
opened 06:04AM - 07 Jan 21 UTC
closed 12:04PM - 13 Jan 21 UTC
Type/Task
module/random
Currently `math` module covers the functions related to random number generation… . These functions should ideally be moved to a separate module (`random`) based on the discussion here[[1]](https://mail.google.com/mail/u/1/#label/integration-ballerina/FMfcgxwKjxHVqxFplDLXpCQZfthclDGW?compose=DmwnWsttFlsrDWMMhmdHkSHqFZqQFGSMvkGBNPVNSpHSRrFBqXzJrMpJKfhDhpvSlsvWzTmtRZBL).
[1] https://mail.google.com/mail/u/1/#label/integration-ballerina/FMfcgxwKjxHVqxFplDLXpCQZfthclDGW?compose=DmwnWsttFlsrDWMMhmdHkSHqFZqQFGSMvkGBNPVNSpHSRrFBqXzJrMpJKfhDhpvSlsvWzTmtRZBL
Thanks for the info. I see now what they’ve done, though I find it a bit surprising.