Jump to content
UBot Underground

List Being Turned To Scientific Notation


Recommended Posts

in Ubot Studio X I want to sort a list but the resulting list is ending up in scientific notation

 

add list to list(%sorted,$sort list(%myposts,"Descending"),"Delete","Global")

 

%myposts

10156238019934531
10156239823899531
10156240530969531
10156238848409531
10156236482544531
10156760025704031
10156235105739531
10156233189979531
10156232720419531
10156232175324531
10156230650744531
 
%sorted
1.0156760025704E+16
1.01562405309695E+16
1.01562398238995E+16
1.01562388484095E+16
1.01562380199345E+16
1.01562364825445E+16
1.01562351057395E+16
1.01562331899795E+16
1.01562327204195E+16
1.01562321753245E+16
1.01562306507445E+16

 

How can't I prevent that?

 

Link to post
Share on other sites

@ed08724 and I had the same idea

 

Here's my code:

clear list(%myposts)
clear list(%sorted)
add list to list(%myposts,$list from text("10156230650744531Q
10156232175324531Q
10156232720419531Q
10156233189979531Q
10156235105739531Q
10156236482544531Q
10156238019934531Q
10156238848409531Q
10156239823899531Q
10156240530969531Q
10156760025704031Q","
"),"Delete","Global")
set(#var,$replace($sort list(%myposts,"Descending"),"Q",$nothing),"Global")
add list to list(%sorted,$list from text(#var,"
"),"Delete","Global")

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...