« first day (2725 days earlier)      last day (581 days later) » 

6:17 AM
Hi all :)
 
 
1 hour later…
7:24 AM
Good morning Friday
 
hello @ all
 
 
4 hours later…
11:04 AM
0
Q: Inbox improvements: marking notifications as read/unread, and a filtered inbox view

marradosTL;DR: We're planning to make some changes to the inbox in a few weeks. You'll be able to mark individual notifications as read or unread, and to filter the inbox dropdown to show only unread notifications (or show all of them). We're also making some styling changes to make it easier to tell whe...

 
 
2 hours later…
1:29 PM
After seeing this post https://stackoverflow.com/q/73987630/680068, I came up with below, can you explain the decimals?

> # no decimals
> set.seed(3); x <- 1000 * runif(10)
> print(x, digits = 10)
[1] 168.0415263 807.5163991 384.9423514 327.7343172 602.1006748
[6] 604.3940540 124.6334442 294.6009242 577.6099190 630.9792744
> print(x, digits = 3)
[1] 168 808 385 328 602 604 125 295 578 631
>
> # with decimals
> set.seed(4); x <- 1000 * runif(10)
> print(x, digits = 10)
[1] 585.800305009 8.945795707 293.739611981 277.374957921
 
 
1 hour later…
3:39 PM
@zx8754 Rounding at where you ask the print to stop ?
Aww the call with 3 which doesn't truncate ?
Wild guess: 8.9457 need two decimals to have 3 digits, hence causing the whole print to have 2 decimals
> x<-c(1.0255,828,57.52)
> y<-c(100.022,828,157.52)
> print(x, digits=3)
[1]   1.03 828.00  57.52
> print(y, digits=3)
[1] 100 828 158
From print.defautl doc on digits: "a non-null value for digits specifies the minimum number of significant digits to be printed in values.". hence why it takes two decimals after 8 to have 3 significant digits, (and for the sake of applying the same to the vector, it switch to 2 decimals for all)
> z<-c(1,2,3.0)
> print(z,digits=3)
[1] 1 2 3
> z<-c(1,2,3.01)
> print(z,digits=3)
[1] 1.00 2.00 3.01
First exemple the decimal is non significant, not printed, the second is and switch everyone to two decimal printing
 
 
5 hours later…
8:25 PM
@Tensibai Nice one, worth posting as Q? And you answer? More of a note to myself :D
 

« first day (2725 days earlier)      last day (581 days later) »